Przeglądaj źródła

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

杨青 2 lat temu
rodzic
commit
936705faef

+ 525 - 9
src/xt_pages/management/components/RepairForm.vue Wyświetl plik

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
+    <div>
3
     <el-row class="row">
4
     <el-row class="row">
4
-      <el-col :span="5">
5
+      <!-- <el-col :span="5">
5
         <span class="machineClass">机号:</span>
6
         <span class="machineClass">机号:</span>
6
         <el-select style="width:100px" v-model="forms.bed">
7
         <el-select style="width:100px" v-model="forms.bed">
7
           <el-option
8
           <el-option
11
             :value="item.id"
12
             :value="item.id"
12
           ></el-option>
13
           ></el-option>
13
         </el-select>
14
         </el-select>
14
-      </el-col>
15
+      </el-col> -->
15
       <el-col :span="11">
16
       <el-col :span="11">
16
         <span class="machineClass">日期查询:</span>
17
         <span class="machineClass">日期查询:</span>
17
         <el-date-picker
18
         <el-date-picker
47
       <el-col :span="2">
48
       <el-col :span="2">
48
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49
       </el-col>
50
       </el-col>
51
+      <span>&nbsp;&nbsp;</span>
52
+      <el-col :span="6">
53
+          <el-button type="primary" size="small" @click="printCard">打印</el-button>
54
+      </el-col>
50
     </el-row>
55
     </el-row>
51
     <el-row>
56
     <el-row>
57
+
52
       <el-table
58
       <el-table
53
         ref="multipleTable"
59
         ref="multipleTable"
54
         @selection-change="handleSelectionChange"
60
         @selection-change="handleSelectionChange"
62
         fit
68
         fit
63
         highlight-current-row
69
         highlight-current-row
64
         style="width: 100%;margin-top: 10px;"
70
         style="width: 100%;margin-top: 10px;"
71
+      >
72
+        <el-table-column
73
+          align="center"
74
+          type="selection"
75
+          width="55"
76
+        ></el-table-column>
77
+        <el-table-column prop="date" label="设备名称" width="100" align="center">
78
+           <template slot-scope="scope">
79
+              {{ getDeviceName(scope.row.equitment_id) }}
80
+           </template>
81
+        </el-table-column>
82
+
83
+        <el-table-column prop="date" label= "型号" width="80" align="center">
84
+          <template slot-scope="scope">
85
+            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span> 
86
+            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span> 
87
+            <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span> 
88
+          </template>
89
+        </el-table-column>
90
+
91
+         <el-table-column label="保养维护内容" align="center" min-width="110px">
92
+            <el-table-column label="功能及附件检查" align="center" min-width="110px">
93
+              <template slot-scope="scope">
94
+                 {{scope.row.function_accessories_inspection }}
95
+              </template>
96
+            </el-table-column>
97
+            <el-table-column label="其他" align="center" min-width="110px">
98
+              <template slot-scope="scope">
99
+                 {{ scope.row.other_information }}
100
+              </template>
101
+            </el-table-column>
102
+          </el-table-column>
103
+
104
+          <el-table-column label="维修记录" align="center" min-width="110px">
105
+            <el-table-column label="故障现象" align="center" min-width="110px">
106
+              <template slot-scope="scope">
107
+                 {{ scope.row.fault_description }}
108
+              </template>
109
+            </el-table-column>
110
+            <el-table-column label="维修内容" align="center" min-width="110px">
111
+              <template slot-scope="scope">
112
+                 {{ scope.row.cause_analysis }}
113
+              </template>
114
+            </el-table-column>
115
+
116
+            <el-table-column label="维修结果" align="center" min-width="110px">
117
+              <template slot-scope="scope">
118
+                {{ scope.row.treatment_process }}
119
+              </template>
120
+            </el-table-column>
121
+          </el-table-column>
122
+
123
+          <el-table-column prop="date" label= "维修者" width="80" align="center">
124
+            <template slot-scope="scope">
125
+                {{ getName(scope.row.admin_user_id) }}
126
+              </template>
127
+           </el-table-column>
128
+
129
+           <el-table-column prop="date" label= "日期" width="80" align="center">
130
+            <template slot-scope="scope">
131
+              {{ getTime(scope.row.guarantee_date) }}
132
+              </template>
133
+           </el-table-column>
134
+
135
+           <el-table-column prop="date" label= "备注" width="80" align="center">
136
+            <template slot-scope="scope">
137
+              {{ scope.row.reason }}
138
+              </template>
139
+           </el-table-column>
140
+ 
141
+      
142
+        
143
+        <el-table-column label="操作" align="center" min-width="150px">
144
+          <template slot-scope="scope">
145
+            <el-tooltip
146
+              class="item"
147
+              effect="dark"
148
+              content="编辑"
149
+              placement="top"
150
+            >
151
+              <el-button
152
+                size="mini"
153
+                type="primary"
154
+                icon="el-icon-edit-outline"
155
+                @click="
156
+                  EditRepair(scope.row.id, scope.row.sampler, scope.$index)
157
+                "
158
+              ></el-button>
159
+            </el-tooltip>
160
+
161
+            <el-tooltip
162
+              class="item"
163
+              effect="dark"
164
+              content="删除"
165
+              placement="top"
166
+            >
167
+              <el-button
168
+                size="mini"
169
+                type="danger"
170
+                icon="el-icon-delete"
171
+                @click="DeleteRepairs(scope.row.id, scope.$index)"
172
+              ></el-button>
173
+            </el-tooltip>
174
+          </template>
175
+        </el-table-column>
176
+      </el-table>
177
+      <!-- <el-table
178
+        ref="multipleTable"
179
+        @selection-change="handleSelectionChange"
180
+        :row-style="{ color: '#303133' }"
181
+        :header-cell-style="{
182
+          backgroundColor: 'rgb(245, 247, 250)',
183
+          color: '#606266'
184
+        }"
185
+        :data="tableData"
186
+        border
187
+        fit
188
+        highlight-current-row
189
+        style="width: 100%;margin-top: 10px;"
65
       >
190
       >
66
         <el-table-column
191
         <el-table-column
67
           align="center"
192
           align="center"
209
             </el-tooltip>
334
             </el-tooltip>
210
           </template>
335
           </template>
211
         </el-table-column>
336
         </el-table-column>
212
-      </el-table>
337
+      </el-table> -->
213
       <el-pagination
338
       <el-pagination
214
         @size-change="handleSizeChange"
339
         @size-change="handleSizeChange"
215
         @current-change="handleCurrentChange"
340
         @current-change="handleCurrentChange"
291
             </el-form-item>
416
             </el-form-item>
292
           </el-col>
417
           </el-col>
293
         </el-row>
418
         </el-row>
419
+        <el-row>
420
+          <el-col :span="24">
421
+              <el-form-item class="formItem" label="功能及附件检查:">
422
+                  <el-input
423
+                    type="textarea"
424
+                    :rows="2"
425
+                      placeholder="请输入内容"
426
+                      v-model="guaForm.function_accessories_inspection"
427
+                    style="width:85%">
428
+                  </el-input>
429
+              </el-form-item>
430
+            </el-col>
431
+        </el-row>
432
+        <el-row>
433
+        <el-col :span="24">
434
+            <el-form-item class="formItem" label="其他:">
435
+                <el-input
436
+                  type="textarea"
437
+                  :rows="2"
438
+                    placeholder="请输入内容"
439
+                    v-model="guaForm.other_information"
440
+                  style="width:85%">
441
+                </el-input>
442
+            </el-form-item>
443
+          </el-col>
444
+        </el-row>
294
         <el-row>
445
         <el-row>
295
           <el-col :span="24">
446
           <el-col :span="24">
296
             <el-form-item label="故障发生阶段">
447
             <el-form-item label="故障发生阶段">
321
         </el-row>
472
         </el-row>
322
         <el-row>
473
         <el-row>
323
           <el-col :span="8">
474
           <el-col :span="8">
324
-            <el-form-item label="故障描述:" required prop="fault_description">
475
+            <el-form-item label="故障现象:" required prop="fault_description">
325
               <el-input
476
               <el-input
326
                 type="textarea"
477
                 type="textarea"
327
                 :rows="2"
478
                 :rows="2"
332
             </el-form-item>
483
             </el-form-item>
333
           </el-col>
484
           </el-col>
334
           <el-col :span="8">
485
           <el-col :span="8">
335
-            <el-form-item label="原因分析:">
486
+            <el-form-item label="维修内容:">
336
               <el-input
487
               <el-input
337
                 type="textarea"
488
                 type="textarea"
338
                 :rows="2"
489
                 :rows="2"
343
             </el-form-item>
494
             </el-form-item>
344
           </el-col>
495
           </el-col>
345
           <el-col :span="8">
496
           <el-col :span="8">
346
-            <el-form-item label="处理过程:">
497
+            <el-form-item label="维修结果:">
347
               <el-input
498
               <el-input
348
                 type="textarea"
499
                 type="textarea"
349
                 :rows="2"
500
                 :rows="2"
393
         </el-row>
544
         </el-row>
394
         <el-row>
545
         <el-row>
395
           <el-col :span="20">
546
           <el-col :span="20">
396
-            <el-form-item label="原因:">
547
+            <el-form-item label="备注:">
397
               <el-input
548
               <el-input
398
                 type="textarea"
549
                 type="textarea"
399
                 :rows="2"
550
                 :rows="2"
404
             </el-form-item>
555
             </el-form-item>
405
           </el-col>
556
           </el-col>
406
         </el-row>
557
         </el-row>
558
+        <el-row>
559
+          <el-col :span="20">
560
+            <el-form-item label="维修者:">
561
+              <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
562
+                      <el-option
563
+                      v-for="item in docList"
564
+                      :key="item.admin_user_id"
565
+                      :label="item.user_name"
566
+                      :value="item.admin_user_id"
567
+                      style="width:185px">
568
+                      </el-option>
569
+              </el-select>
570
+            </el-form-item>
571
+          </el-col>
572
+        </el-row>
407
       </el-form>
573
       </el-form>
408
       <span slot="footer" class="dialog-footer">
574
       <span slot="footer" class="dialog-footer">
409
 <!--        <button @click="lili">调试</button>-->
575
 <!--        <button @click="lili">调试</button>-->
413
         >
579
         >
414
       </span>
580
       </span>
415
     </el-dialog>
581
     </el-dialog>
582
+
583
+    <div hidden="hidden">
584
+      <div id="print-card-info" v-show="hiddenShow">
585
+        <div>
586
+          <div class="print_main_content">
587
+            <div class="order_title">水机使用记录清单</div>
588
+          </div>
589
+          <div>
590
+            <div class="printClass">打印日期:{{ nowTime }}</div>
591
+            <table
592
+              border="1"
593
+              style="width:100%"
594
+              cellspacing="0"
595
+              cellpadding="0"
596
+              class="tableClass"
597
+            >
598
+              <tr>
599
+                <td
600
+                  :rowspan="2"
601
+                  style="text-align:center;width:60px;font-size:15px;"
602
+                >
603
+                  日期
604
+                </td>
605
+              
606
+               
607
+                <td
608
+                  :colspan="4"
609
+                  style="text-align:center;width:60px;font-size:15px"
610
+                >
611
+                  原水参数
612
+                </td>
613
+
614
+                <td
615
+                  :colspan="2"
616
+                  style="text-align:center;width:60px;font-size:15px"
617
+                >
618
+                  一级反渗
619
+                </td>
620
+
621
+                <td
622
+                  :colspan="2"
623
+                  style="text-align:center;width:60px;font-size:15px"
624
+                >
625
+                  二级反渗
626
+                </td>
627
+
628
+                <td
629
+                  :rowspan="2"
630
+                  style="text-align:center;width:60px;font-size:15px"
631
+                >
632
+                 碳罐
633
+                </td>
634
+                <td
635
+                 :rowspan="2"
636
+                  style="text-align:center;width:60px;font-size:15px"
637
+                >
638
+                 砂罐
639
+                </td>
640
+
641
+                <td
642
+                 :rowspan="2"
643
+                  style="text-align:center;width:60px;font-size:15px"
644
+                >
645
+                 树脂罐
646
+                </td>
647
+
648
+                <td
649
+                 :rowspan="2"
650
+                  style="text-align:center;width:60px;font-size:15px"
651
+                >
652
+                  静谧过滤器(MPa)
653
+                </td>
654
+              
655
+                <td
656
+                 :colspan="4"
657
+                  style="text-align:center;width:60px;font-size:15px"
658
+                >
659
+                 水质监测
660
+                </td>
661
+
662
+                <td
663
+                 :colspan="2"
664
+                  style="text-align:center;width:60px;font-size:15px"
665
+                >
666
+                 消毒
667
+                </td>
668
+
669
+                <td
670
+                 :rowspan="2"
671
+                  style="text-align:center;width:60px;font-size:15px"
672
+                >
673
+                过滤器更换
674
+                </td>
675
+
676
+                <td
677
+                 :rowspan="2"
678
+                  style="text-align:center;width:60px;font-size:15px"
679
+                >
680
+                记录人
681
+                </td>
682
+               
683
+              </tr>
684
+              <tr>
685
+                <td style="text-align:center;width:70px;font-size:15px">
686
+                  原水电导度
687
+                </td>
688
+                <td style="text-align:center;width:50px;font-size:15px">
689
+                  原水压力
690
+                </td>
691
+                <td style="text-align:center;width:70px;font-size:15px">
692
+                  温度
693
+                </td>
694
+                <td style="text-align:center;width:95px;font-size:15px">
695
+                  加压泵
696
+                </td>
697
+
698
+                <td style="text-align:center;width:70px;font-size:15px">
699
+                  产水电导度
700
+                </td>
701
+                <td style="text-align:center;width:95px;font-size:15px">
702
+                  产水量
703
+                </td>
704
+
705
+                <td style="text-align:center;width:70px;font-size:15px">
706
+                  产水电导度
707
+                </td>
708
+                <td style="text-align:center;width:95px;font-size:15px">
709
+                  产水量
710
+                </td>
711
+
712
+             
713
+
714
+                <td style="text-align:center;width:70px;font-size:15px">
715
+                   硬度(mg/l)
716
+                </td>
717
+                <td style="text-align:center;width:95px;font-size:15px">
718
+                  总氯(mg/l)
719
+                </td>
720
+
721
+                <td style="text-align:center;width:70px;font-size:15px">
722
+                  PH值
723
+                </td>
724
+                <td style="text-align:center;width:95px;font-size:15px">
725
+                  过氧乙酸(mg/l)
726
+                </td>
727
+
728
+                <td style="text-align:center;width:70px;font-size:15px">
729
+                  反渗膜消毒
730
+                </td>
731
+                <td style="text-align:center;width:95px;font-size:15px">
732
+                  输水管道消毒
733
+                </td>
734
+                
735
+               
736
+              
737
+              </tr>
738
+              <tr v-for="item in this.tableData" :key="item.id">
739
+                <td style="text-align:center;font-size:15px;height:30px">
740
+                 
741
+                </td>
742
+               
743
+                <td style="text-align:center;font-size:15px;height:30px">
744
+                  
745
+                </td>
746
+                <td style="text-align:center;font-size:15px;height:30px">
747
+                 
748
+                </td>
749
+                <td style="text-align:center;font-size:15px;height:30px">
750
+                 
751
+                </td>
752
+                <td style="text-align:center;font-size:15px;height:30px">
753
+                  
754
+                </td>
755
+
756
+                <td style="text-align:center;font-size:15px;height:30px">
757
+                
758
+                </td>
759
+                <td style="text-align:center;font-size:15px;height:30px">
760
+                 
761
+                </td>
762
+
763
+                <td style="text-align:center;font-size:15px;height:30px">
764
+                 
765
+                </td>
766
+                <td style="text-align:center;font-size:15px;height:30px">
767
+                 
768
+                </td>
769
+
770
+                <td
771
+                  style="text-align:center;width:60px;font-size:15px"
772
+                >
773
+                
774
+                </td>
775
+                <td
776
+                  style="text-align:center;width:60px;font-size:15px"
777
+                >
778
+                
779
+                </td>
780
+
781
+                <td
782
+                  style="text-align:center;width:60px;font-size:15px"
783
+                >
784
+                 
785
+                </td>
786
+
787
+                <td
788
+                  style="text-align:center;width:60px;font-size:15px"
789
+                >
790
+              
791
+                </td>
792
+
793
+                <td
794
+                  style="text-align:center;width:60px;font-size:15px"
795
+                >
796
+               
797
+                </td>
798
+                <td
799
+                  style="text-align:center;width:60px;font-size:15px"
800
+                >
801
+               
802
+                </td>
803
+
804
+                <td
805
+                  style="text-align:center;width:60px;font-size:15px"
806
+                >
807
+                 
808
+                </td>
809
+
810
+                <td
811
+                  style="text-align:center;width:60px;font-size:15px"
812
+                >
813
+                
814
+                </td>
815
+
816
+                <td
817
+                  style="text-align:center;width:60px;font-size:15px"
818
+                >
819
+               
820
+                </td>
821
+
822
+                <td
823
+                  style="text-align:center;width:60px;font-size:15px"
824
+                >
825
+              
826
+                </td>
827
+
828
+                <td
829
+                  style="text-align:center;width:60px;font-size:15px"
830
+                >
831
+                
832
+                </td>
833
+                
834
+                <td style="text-align:center;width:70px;font-size:15px">
835
+                
836
+                </td>
837
+             
838
+               
839
+               
840
+             
841
+              </tr>
842
+            </table>
843
+          </div>
844
+        </div>
845
+      </div>
846
+    </div>
847
+   </div>
416
   </div>
848
   </div>
417
 </template>
849
 </template>
418
 
850
 
428
 } from "@/api/manage";
860
 } from "@/api/manage";
429
 import { uParseTime } from "@/utils/tools";
861
 import { uParseTime } from "@/utils/tools";
430
 import { getFileExtension } from "@/utils/tools";
862
 import { getFileExtension } from "@/utils/tools";
863
+import print from "print-js";
864
+const moment = require("moment");
431
 export default {
865
 export default {
432
   name: "RepairForm",
866
   name: "RepairForm",
433
   data() {
867
   data() {
434
     return {
868
     return {
869
+      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
435
       dialogVisible: false,
870
       dialogVisible: false,
436
       selectCulture: [],
871
       selectCulture: [],
437
       forms: {
872
       forms: {
455
         exclude: "",
890
         exclude: "",
456
         reason: "",
891
         reason: "",
457
         code_information: "",
892
         code_information: "",
458
-        image_name: ""
893
+        image_name: "",
894
+        admin_user_id:this.$store.getters.xt_user.user.id,
895
+        function_accessories_inspection:"",
896
+        other_information:"",
459
       },
897
       },
460
       isIndeterminate: false,
898
       isIndeterminate: false,
461
       checkAllStatus: false,
899
       checkAllStatus: false,
483
       limit: 10,
921
       limit: 10,
484
       page: 1,
922
       page: 1,
485
       total: 0,
923
       total: 0,
924
+      macherList:[],
925
+      docList:[],
926
+      hiddenShow:false,
486
     };
927
     };
487
   },
928
   },
488
   methods: {
929
   methods: {
515
         if (response.data.state === 1) {
956
         if (response.data.state === 1) {
516
           var repair = response.data.data.repair;
957
           var repair = response.data.data.repair;
517
           console.log("repair是", repair);
958
           console.log("repair是", repair);
959
+          var macherList = response.data.data.macherList
960
+         
961
+          this.macherList = macherList
962
+          this.docList = response.data.data.docList
518
           // eslint-disable-next-line no-unused-vars
963
           // eslint-disable-next-line no-unused-vars
519
           var total = response.data.data.total;
964
           var total = response.data.data.total;
520
           this.total = total;
965
           this.total = total;
553
               repair[index].exclude = "未解决";
998
               repair[index].exclude = "未解决";
554
             }
999
             }
555
           }
1000
           }
1001
+          console.log("repair------",repair)
556
           this.tableData = repair;
1002
           this.tableData = repair;
557
         }
1003
         }
558
       });
1004
       });
575
         if (response.data.state === 1) {
1021
         if (response.data.state === 1) {
576
           var repair = response.data.data.repair;
1022
           var repair = response.data.data.repair;
577
           console.log("repair", repair);
1023
           console.log("repair", repair);
1024
+          this.docList = response.data.data.docList
578
           this.guaForm.guarantee_date = uParseTime(
1025
           this.guaForm.guarantee_date = uParseTime(
579
             repair.guarantee_date,
1026
             repair.guarantee_date,
580
             "{y}-{m}-{d}"
1027
             "{y}-{m}-{d}"
602
           this.guaForm.code_information = repair.code_information;
1049
           this.guaForm.code_information = repair.code_information;
603
           this.guaForm.id = repair.id;
1050
           this.guaForm.id = repair.id;
604
           this.filename = repair.image_name;
1051
           this.filename = repair.image_name;
1052
+          this.guaForm.admin_user_id = repair.admin_user_id
1053
+          this.guaForm.function_accessories_inspection = repair.function_accessories_inspection
1054
+          this.guaForm.other_information= repair.other_information
605
         }
1055
         }
606
       });
1056
       });
607
     },
1057
     },
807
           }
1257
           }
808
         });
1258
         });
809
       });
1259
       });
810
-    }
1260
+    },
1261
+    getDeviceName(id){
1262
+      var device_name= ""
1263
+      for(let i=0;i<this.macherList.length;i++){
1264
+        if(id == this.macherList[i].id){
1265
+           device_name = this.macherList[i].device_name
1266
+        }
1267
+      }
1268
+      return device_name
1269
+    },
1270
+    getRepairName(id){
1271
+      var device_type= ""
1272
+      for(let i=0;i<this.macherList.length;i++){
1273
+        if(id == this.macherList[i].id){
1274
+          device_type = this.macherList[i].device_type
1275
+        }
1276
+      }
1277
+      return device_type
1278
+    },
1279
+    getName(admin_user_id){
1280
+      var user_name = ""
1281
+      for(let i=0;i<this.docList.length;i++){
1282
+        if(admin_user_id == this.docList[i].admin_user_id){
1283
+           user_name = this.docList[i].user_name
1284
+        }
1285
+      }
1286
+      return user_name
1287
+    },
1288
+    printCard() {
1289
+        this.hiddenShow = true;
1290
+        var ptime = Math.round(new Date().getTime() / 1000);
1291
+        this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1292
+
1293
+        const style =
1294
+          "@media print {.print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
1295
+
1296
+        setTimeout(() => {
1297
+          printJS({
1298
+            printable: "print-card-info",
1299
+            type: "html",
1300
+            style: style,
1301
+            scanStyles: false
1302
+          });
1303
+        }, 1);
1304
+      },
811
   },
1305
   },
812
   created() {
1306
   created() {
813
     this.getAllSubregion();
1307
     this.getAllSubregion();
816
 };
1310
 };
817
 </script>
1311
 </script>
818
 
1312
 
1313
+
819
 <style scoped>
1314
 <style scoped>
1315
+
820
 .row {
1316
 .row {
821
   margin-bottom: 10px;
1317
   margin-bottom: 10px;
822
 }
1318
 }
1319
+.a {
1320
+  /* .el-col-2 {
1321
+    width: 8.33333%;
1322
+    margin-bottom: 20px;
1323
+  } */
1324
+}
1325
+.print_main_content {
1326
+  background-color: white;
1327
+  width: 960px;
1328
+  margin: 0 auto;
1329
+  padding: 0 0 20px 0;
1330
+}
1331
+.tableClass {
1332
+  font-size: 10px;
1333
+  font-weight: none;
1334
+}
1335
+.printClass {
1336
+  width: 100%;
1337
+  text-align: right;
1338
+}
823
 </style>
1339
 </style>

+ 88 - 14
src/xt_pages/management/components/UserForm.vue Wyświetl plik

324
                 </template>
324
                 </template>
325
               </el-autocomplete>
325
               </el-autocomplete>
326
             </el-form-item>
326
             </el-form-item>
327
-         
327
+
328
           </el-col>
328
           </el-col>
329
           <el-col :span="8">
329
           <el-col :span="8">
330
             <el-form-item label="传染病:">
330
             <el-form-item label="传染病:">
476
         </el-row>
476
         </el-row>
477
         <el-row>
477
         <el-row>
478
           <el-col :span="2">
478
           <el-col :span="2">
479
-            <el-form-item label="①机表"></el-form-item>
479
+            <el-form-item label="①机表(床单元、床旁桌)"></el-form-item>
480
           </el-col>
480
           </el-col>
481
           <el-col :span="8">
481
           <el-col :span="8">
482
             <el-form-item label="消毒方式:" style="width:200px">
482
             <el-form-item label="消毒方式:" style="width:200px">
831
                 <td
831
                 <td
832
                   :rowspan="2"
832
                   :rowspan="2"
833
                   style="text-align:center;min-width:40px;font-size:15px"
833
                   style="text-align:center;min-width:40px;font-size:15px"
834
+                >
835
+                  使用次数
836
+                </td>
837
+                <td
838
+                  :rowspan="2"
839
+                  style="text-align:center;width:60px;font-size:15px"
834
                 >
840
                 >
835
                   运行
841
                   运行
836
                 </td>
842
                 </td>
861
                 <td
867
                 <td
862
                   :rowspan="2"
868
                   :rowspan="2"
863
                   style="text-align:center;min-width:40px;font-size:15px"
869
                   style="text-align:center;min-width:40px;font-size:15px"
870
+                >
871
+                 透析机消毒液(更换)
872
+                </td>
873
+                <td
874
+                  :rowspan="2"
875
+                  style="text-align:center;width:80px;font-size:15px"
876
+                >
877
+                 细菌过滤器(更换)
878
+                </td>
879
+                <td
880
+                  :rowspan="2"
881
+                  style="text-align:center;width:80px;font-size:15px"
882
+                >
883
+                 空气滤网
884
+                </td>
885
+                <td
886
+                  :rowspan="2"
887
+                  style="text-align:center;width:80px;font-size:15px"
864
                 >
888
                 >
865
                   签名
889
                   签名
866
                 </td>
890
                 </td>
913
                 <td style="text-align:center;font-size:15px;height:30px">
937
                 <td style="text-align:center;font-size:15px;height:30px">
914
                   {{ item.dialysis_mode }}
938
                   {{ item.dialysis_mode }}
915
                 </td>
939
                 </td>
940
+                <td style="text-align:center;font-size:15px;height:30px">
941
+                  {{ item.user_total }}
942
+                </td>
916
                 <td style="text-align:center;font-size:15px;height:30px">
943
                 <td style="text-align:center;font-size:15px;height:30px">
917
                   {{ item.move }}
944
                   {{ item.move }}
918
                 </td>
945
                 </td>
943
                 <td style="text-align:center;font-size:15px;height:30px">
970
                 <td style="text-align:center;font-size:15px;height:30px">
944
                   {{ item.disinfection_residue }}
971
                   {{ item.disinfection_residue }}
945
                 </td>
972
                 </td>
973
+                <td style="text-align:center;font-size:15px;height:30px">
974
+                   {{item.dialysis_checked }}
975
+                </td>
976
+                <td style="text-align:center;font-size:15px;height:30px">
977
+                  {{item.germ_checked }}
978
+                </td>
979
+                <td style="text-align:center;font-size:15px;height:30px">
980
+                  {{item.clean}}
981
+                </td>
982
+
946
                 <td style="text-align:center;font-size:15px;height:30px">
983
                 <td style="text-align:center;font-size:15px;height:30px">
947
                   {{ item.user_name }}
984
                   {{ item.user_name }}
948
                 </td>
985
                 </td>
1185
             zone.push({ id: item.id, name: item.name });
1222
             zone.push({ id: item.id, name: item.name });
1186
           }
1223
           }
1187
           this.zones = zone;
1224
           this.zones = zone;
1188
-       
1225
+
1189
           var numbers = response.data.data.numbers;
1226
           var numbers = response.data.data.numbers;
1190
           var number = [{ id: 0, number: "全部" }];
1227
           var number = [{ id: 0, number: "全部" }];
1191
           for (let index = 0; index < numbers.length; index++) {
1228
           for (let index = 0; index < numbers.length; index++) {
1268
             if (information[index].dialysis_mode === 19) {
1305
             if (information[index].dialysis_mode === 19) {
1269
               information[index].dialysis_mode = "IUF+HD";
1306
               information[index].dialysis_mode = "IUF+HD";
1270
             }
1307
             }
1271
-            
1308
+
1272
             if (information[index].dialysis_mode === 20) {
1309
             if (information[index].dialysis_mode === 20) {
1273
               information[index].dialysis_mode = "UF";
1310
               information[index].dialysis_mode = "UF";
1274
             }
1311
             }
1542
           var macher =  response.data.data.macher
1579
           var macher =  response.data.data.macher
1543
            if(macher.user_total == ''){
1580
            if(macher.user_total == ''){
1544
              macher.user_total = 0
1581
              macher.user_total = 0
1545
-           }   
1582
+           }
1546
           var totals = count[0].Total + parseInt(macher.user_total)
1583
           var totals = count[0].Total + parseInt(macher.user_total)
1547
           this.userform.id = device.id;
1584
           this.userform.id = device.id;
1548
           this.userform.spling_date = uParseTime(
1585
           this.userform.spling_date = uParseTime(
1564
           this.userform.hyperfiltratio = device.hyperfiltratio;
1601
           this.userform.hyperfiltratio = device.hyperfiltratio;
1565
           this.userform.weight_loss = device.weight_loss;
1602
           this.userform.weight_loss = device.weight_loss;
1566
           this.userform.warning_value = device.warning_value;
1603
           this.userform.warning_value = device.warning_value;
1567
-       
1604
+
1568
           this.userform.run = device.move;
1605
           this.userform.run = device.move;
1569
 
1606
 
1570
           this.userform.failure_stage = device.failure_stage;
1607
           this.userform.failure_stage = device.failure_stage;
1580
           this.userform.disinfection_residue = device.disinfection_residue;
1617
           this.userform.disinfection_residue = device.disinfection_residue;
1581
           this.userform.longtime = device.long_time;
1618
           this.userform.longtime = device.long_time;
1582
           this.userform.dialysis_time = device.dialysis_hour;
1619
           this.userform.dialysis_time = device.dialysis_hour;
1583
-        
1620
+
1584
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1621
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1585
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1622
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1586
           this.userform.equiment_id = device.equiment_id;
1623
           this.userform.equiment_id = device.equiment_id;
1621
           if (device.disinfection === 0) {
1658
           if (device.disinfection === 0) {
1622
             this.userform.disinfection = "";
1659
             this.userform.disinfection = "";
1623
           }
1660
           }
1624
-          this.userform.user_total = totals.toString() 
1661
+          this.userform.user_total = totals.toString()
1625
         }
1662
         }
1626
       });
1663
       });
1627
     },
1664
     },
1737
       this.$refs[formName].validate(valid => {
1774
       this.$refs[formName].validate(valid => {
1738
         if (valid) {
1775
         if (valid) {
1739
           console.log("hhhh23233323",this.userform)
1776
           console.log("hhhh23233323",this.userform)
1740
-       
1777
+
1741
           UpdateForm(this.userform).then(response => {
1778
           UpdateForm(this.userform).then(response => {
1742
             if (response.data.state === 1) {
1779
             if (response.data.state === 1) {
1743
               var information = response.data.data.information;
1780
               var information = response.data.data.information;
1862
             if (information[index].dialysis_mode === 25) {
1899
             if (information[index].dialysis_mode === 25) {
1863
               information[index].dialysis_mode = "HD高通";
1900
               information[index].dialysis_mode = "HD高通";
1864
             }
1901
             }
1865
-            
1902
+
1866
             if (information[index].dialysis_mode === 26) {
1903
             if (information[index].dialysis_mode === 26) {
1867
               information[index].dialysis_mode = "CVVH";
1904
               information[index].dialysis_mode = "CVVH";
1868
             }
1905
             }
1879
               information[index].dialysis_mode = "PE";
1916
               information[index].dialysis_mode = "PE";
1880
             }
1917
             }
1881
 
1918
 
1882
-           
1883
- 
1919
+
1920
+
1884
             if (information[index].move === 0) {
1921
             if (information[index].move === 0) {
1885
               information[index].move = "";
1922
               information[index].move = "";
1886
             }
1923
             }
2100
     getUserForm(id) {
2137
     getUserForm(id) {
2101
       getUserForm(id, this.limit, this.page).then(response => {
2138
       getUserForm(id, this.limit, this.page).then(response => {
2102
         if (response.data.state === 1) {
2139
         if (response.data.state === 1) {
2103
-          var information = response.data.data.information; 
2140
+          var information = response.data.data.information;
2104
           console.log("information",information)
2141
           console.log("information",information)
2105
           var addmacher = response.data.data.addmacher;
2142
           var addmacher = response.data.data.addmacher;
2106
           console.log("addmacher",addmacher)
2143
           console.log("addmacher",addmacher)
2203
             if (information[index].dialysis_mode === 25) {
2240
             if (information[index].dialysis_mode === 25) {
2204
               information[index].dialysis_mode = "HD高通";
2241
               information[index].dialysis_mode = "HD高通";
2205
             }
2242
             }
2206
-            
2243
+
2207
            if (information[index].dialysis_mode === 26) {
2244
            if (information[index].dialysis_mode === 26) {
2208
               information[index].dialysis_mode = "CVVH";
2245
               information[index].dialysis_mode = "CVVH";
2209
             }
2246
             }
2509
           }
2546
           }
2510
         });
2547
         });
2511
       });
2548
       });
2549
+
2550
+
2551
+    },
2552
+
2553
+    exportlist: function() {
2554
+        for(let i=0;i<this.tableData.length;i++){
2555
+            this.tableData[i].index = i+1
2556
+
2557
+
2558
+            this.tableData[i].record_date_str =  this.getTime(this.tableData[i].date)
2559
+           this.tableData[i].disinfec_startime_str = this.getTimesTwo(this.tableData[i].disinfec_startime)
2560
+           this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2561
+          }
2562
+          import('@/vendor/Export2Excel').then(excel => {
2563
+
2564
+            const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2565
+            const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
2566
+            const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','G1:G2','H1:H2','I1:L1','M1:S1','T1:T2','U1:U2','V1:V2','W1:W2']
2567
+            const filterVal = ['index','bed','record_date_str','class','name','dialysis_mode','user_total','move','disinfect_type','disinfectant_type','disinfection','dialysis_concentration','fluid_path','disinfectant','disinfec_startime_str','disinfec_endtime_str','long_time','disinfection_status','disinfection_residue','dialysis_checked','germ_checked','clean','user_name']
2568
+            const data = this.formatJson(filterVal, this.tableData)
2569
+
2570
+            const filename = '透析机使用登记'
2571
+
2572
+            console.log("rwwwwwwwwwww",this.tableData)
2573
+
2574
+            excel.export_json_to_excel({
2575
+              multiHeader,
2576
+              header,
2577
+              merges,
2578
+              data,
2579
+              filename
2580
+            })
2581
+          })
2582
+      },
2583
+      formatJson(filterVal, jsonData) {
2584
+        return jsonData.map(v => filterVal.map(j => v[j]));
2585
+      },
2512
     },
2586
     },
2513
     exportList: function() {
2587
     exportList: function() {
2514
       console.log('123245354');
2588
       console.log('123245354');

+ 64 - 56
src/xt_pages/management/components/WaterFormList.vue Wyświetl plik

23
             style="width:130px"
23
             style="width:130px"
24
           ></el-date-picker>
24
           ></el-date-picker>
25
         </el-col>
25
         </el-col>
26
-   
26
+
27
       </el-row>
27
       </el-row>
28
       <el-row :span="24" style="display: flex;align-items: center;">
28
       <el-row :span="24" style="display: flex;align-items: center;">
29
         <el-col :span="2">
29
         <el-col :span="2">
43
         </el-col>
43
         </el-col>
44
       </el-row>
44
       </el-row>
45
       <el-row>
45
       <el-row>
46
-     
46
+
47
         <el-table
47
         <el-table
48
           ref="multipleTable"
48
           ref="multipleTable"
49
           @selection-change="handleSelectionChange"
49
           @selection-change="handleSelectionChange"
185
             </el-table-column>
185
             </el-table-column>
186
           </el-table-column>
186
           </el-table-column>
187
 
187
 
188
-        
188
+
189
             <el-table-column label="过滤器更换" align="center" min-width="110px">
189
             <el-table-column label="过滤器更换" align="center" min-width="110px">
190
               <template slot-scope="scope">
190
               <template slot-scope="scope">
191
                  {{scope.row.filter_replacement}}
191
                  {{scope.row.filter_replacement}}
196
                  {{ getDocName(scope.row.admin_user_id) }}
196
                  {{ getDocName(scope.row.admin_user_id) }}
197
               </template>
197
               </template>
198
             </el-table-column>
198
             </el-table-column>
199
-   
199
+
200
           <el-table-column label="操作" align="center" fixed="right" min-width="150px">
200
           <el-table-column label="操作" align="center" fixed="right" min-width="150px">
201
             <template slot-scope="scope">
201
             <template slot-scope="scope">
202
               <el-tooltip
202
               <el-tooltip
214
                   "
214
                   "
215
                 ></el-button>
215
                 ></el-button>
216
               </el-tooltip>
216
               </el-tooltip>
217
-  
217
+
218
               <el-tooltip
218
               <el-tooltip
219
                 class="item"
219
                 class="item"
220
                 effect="dark"
220
                 effect="dark"
340
                     <el-input  v-model="form.first_water_yield" style="width:100px" type="number"></el-input>
340
                     <el-input  v-model="form.first_water_yield" style="width:100px" type="number"></el-input>
341
                 </el-form-item>
341
                 </el-form-item>
342
             </el-col>
342
             </el-col>
343
-         
343
+
344
          </el-row>
344
          </el-row>
345
          <el-row>
345
          <el-row>
346
             <span>反渗二级</span>
346
             <span>反渗二级</span>
477
          </el-row>
477
          </el-row>
478
 
478
 
479
          <el-row>
479
          <el-row>
480
-          
480
+
481
             <el-col :span="8">
481
             <el-col :span="8">
482
                 <el-form-item label="过滤器更换(只):"  class="st">
482
                 <el-form-item label="过滤器更换(只):"  class="st">
483
                     <el-input  v-model="form.filter_replacement" style="width:100px" type="number"></el-input>
483
                     <el-input  v-model="form.filter_replacement" style="width:100px" type="number"></el-input>
492
          </el-row>
492
          </el-row>
493
 
493
 
494
          <el-row>
494
          <el-row>
495
-          
495
+
496
           <el-col :span="8">
496
           <el-col :span="8">
497
               <el-form-item label="记录人:"  class="st">
497
               <el-form-item label="记录人:"  class="st">
498
                 <el-select style="width:135px" v-model="form.admin_user_id">
498
                 <el-select style="width:135px" v-model="form.admin_user_id">
506
               </el-form-item>
506
               </el-form-item>
507
           </el-col>
507
           </el-col>
508
 
508
 
509
-        
509
+
510
         </el-row>
510
         </el-row>
511
-       
511
+
512
         </el-form>
512
         </el-form>
513
 
513
 
514
           </span>
514
           </span>
517
             <el-button type="primary" @click="UpdateDilaysisWater('form')">确 定</el-button>
517
             <el-button type="primary" @click="UpdateDilaysisWater('form')">确 定</el-button>
518
           </span>
518
           </span>
519
         </el-dialog>
519
         </el-dialog>
520
-        
520
+
521
 
521
 
522
       <div hidden="hidden">
522
       <div hidden="hidden">
523
       <div id="print-card-info" v-show="hiddenShow">
523
       <div id="print-card-info" v-show="hiddenShow">
541
                 >
541
                 >
542
                   日期
542
                   日期
543
                 </td>
543
                 </td>
544
-              
545
-               
544
+
545
+
546
                 <td
546
                 <td
547
                   :colspan="4"
547
                   :colspan="4"
548
                   style="text-align:center;width:60px;font-size:15px"
548
                   style="text-align:center;width:60px;font-size:15px"
590
                 >
590
                 >
591
                   静谧过滤器(MPa)
591
                   静谧过滤器(MPa)
592
                 </td>
592
                 </td>
593
-              
593
+
594
                 <td
594
                 <td
595
                  :colspan="4"
595
                  :colspan="4"
596
                   style="text-align:center;width:60px;font-size:15px"
596
                   style="text-align:center;width:60px;font-size:15px"
618
                 >
618
                 >
619
                 记录人
619
                 记录人
620
                 </td>
620
                 </td>
621
-               
621
+
622
               </tr>
622
               </tr>
623
               <tr>
623
               <tr>
624
                 <td style="text-align:center;width:70px;font-size:15px">
624
                 <td style="text-align:center;width:70px;font-size:15px">
648
                   产水量
648
                   产水量
649
                 </td>
649
                 </td>
650
 
650
 
651
-             
651
+
652
 
652
 
653
                 <td style="text-align:center;width:70px;font-size:15px">
653
                 <td style="text-align:center;width:70px;font-size:15px">
654
                    硬度(mg/l)
654
                    硬度(mg/l)
670
                 <td style="text-align:center;width:95px;font-size:15px">
670
                 <td style="text-align:center;width:95px;font-size:15px">
671
                   输水管道消毒
671
                   输水管道消毒
672
                 </td>
672
                 </td>
673
-                
674
-               
675
-              
673
+
674
+
675
+
676
               </tr>
676
               </tr>
677
               <tr v-for="item in this.tableData" :key="item.id">
677
               <tr v-for="item in this.tableData" :key="item.id">
678
                 <td style="text-align:center;font-size:15px;height:30px">
678
                 <td style="text-align:center;font-size:15px;height:30px">
679
                   {{getTime(item.record_date) }}
679
                   {{getTime(item.record_date) }}
680
                 </td>
680
                 </td>
681
-               
681
+
682
                 <td style="text-align:center;font-size:15px;height:30px">
682
                 <td style="text-align:center;font-size:15px;height:30px">
683
                   {{ item.water_conductivity }}
683
                   {{ item.water_conductivity }}
684
                 </td>
684
                 </td>
772
                 >
772
                 >
773
                 {{item.filter_replacement}}
773
                 {{item.filter_replacement}}
774
                 </td>
774
                 </td>
775
-                
775
+
776
                 <td style="text-align:center;width:70px;font-size:15px">
776
                 <td style="text-align:center;width:70px;font-size:15px">
777
                   {{ getDocName(item.admin_user_id) }}
777
                   {{ getDocName(item.admin_user_id) }}
778
                 </td>
778
                 </td>
779
-             
780
-               
781
-               
782
-             
779
+
780
+
781
+
782
+
783
               </tr>
783
               </tr>
784
             </table>
784
             </table>
785
           </div>
785
           </div>
790
       </div>
790
       </div>
791
     </div>
791
     </div>
792
 
792
 
793
-   
793
+
794
   </template>
794
   </template>
795
   <script>
795
   <script>
796
   import { uParseTime } from "@/utils/tools";
796
   import { uParseTime } from "@/utils/tools";
831
               last_ro_membrane_effluent:"",
831
               last_ro_membrane_effluent:"",
832
               last_production_of_water_conductivity:"",//产水电导度
832
               last_production_of_water_conductivity:"",//产水电导度
833
               last_water_yield:"",//产水量
833
               last_water_yield:"",//产水量
834
-             
834
+
835
               carbon_tank:"",//碳罐
835
               carbon_tank:"",//碳罐
836
               snd_tank:"",//砂罐,
836
               snd_tank:"",//砂罐,
837
               resin_tank:"",//树脂罐
837
               resin_tank:"",//树脂罐
849
               remark:"",//备注
849
               remark:"",//备注
850
               filter_replacement:"",//过滤器更换
850
               filter_replacement:"",//过滤器更换
851
               admin_user_id:"",//记录人
851
               admin_user_id:"",//记录人
852
-              
852
+
853
             },
853
             },
854
             machineType:[
854
             machineType:[
855
-               {id:0,name:"全部"}, 
856
-               {id:1,name:"正常"}, 
857
-               {id:2,name:"故障"}, 
855
+               {id:0,name:"全部"},
856
+               {id:1,name:"正常"},
857
+               {id:2,name:"故障"},
858
             ],
858
             ],
859
             forcePumpList:[
859
             forcePumpList:[
860
               {id:0,name:"全部"},
860
               {id:0,name:"全部"},
864
             disinfectionType:[
864
             disinfectionType:[
865
             { id: 0, name: "请选择" },
865
             { id: 0, name: "请选择" },
866
             { id: 1, name: "热消毒" },
866
             { id: 1, name: "热消毒" },
867
-            { id: 2, name: "化学消毒" }   
867
+            { id: 2, name: "化学消毒" }
868
             ],
868
             ],
869
             checked:"",
869
             checked:"",
870
             rules: {
870
             rules: {
893
                this.total = total
893
                this.total = total
894
                this.adminRole = response.data.data.adminRole
894
                this.adminRole = response.data.data.adminRole
895
 
895
 
896
-               
896
+
897
              }
897
              }
898
           })
898
           })
899
          },
899
          },
994
         ).then(() => {
994
         ).then(() => {
995
           DeleteWater(id,index).then(response => {
995
           DeleteWater(id,index).then(response => {
996
               if (response.data.state == 1) {
996
               if (response.data.state == 1) {
997
-               
997
+
998
                 this.$message.success('删除成功')
998
                 this.$message.success('删除成功')
999
                 this.tableData.splice(index,1)
999
                 this.tableData.splice(index,1)
1000
               } else {
1000
               } else {
1011
         getDialysisWaterDetail(id).then(response=>{
1011
         getDialysisWaterDetail(id).then(response=>{
1012
           if(response.data.state == 1){
1012
           if(response.data.state == 1){
1013
             var detail =  response.data.data.detail
1013
             var detail =  response.data.data.detail
1014
-            
1014
+
1015
             this.form.id = detail.id
1015
             this.form.id = detail.id
1016
             this.form.record_date = this.getTime(detail.record_date)
1016
             this.form.record_date = this.getTime(detail.record_date)
1017
             this.form.machine_status = detail.machine_status.toString()
1017
             this.form.machine_status = detail.machine_status.toString()
1043
             }else{
1043
             }else{
1044
               this.form.reverse_osmosis_membrane_disinfection  =false
1044
               this.form.reverse_osmosis_membrane_disinfection  =false
1045
             }
1045
             }
1046
-              
1046
+
1047
             if(detail.disinfection_of_water_pipeline == 1){
1047
             if(detail.disinfection_of_water_pipeline == 1){
1048
                 this.form.disinfection_of_water_pipeline = true
1048
                 this.form.disinfection_of_water_pipeline = true
1049
             }else{
1049
             }else{
1122
                 var deviceWater =  response.data.data.deviceWater
1122
                 var deviceWater =  response.data.data.deviceWater
1123
                 console.log("保存成功!",deviceWater)
1123
                 console.log("保存成功!",deviceWater)
1124
                 this.$message.success("保存成功!")
1124
                 this.$message.success("保存成功!")
1125
-                this.dialogVisible = false 
1125
+                this.dialogVisible = false
1126
                 this.getlist()
1126
                 this.getlist()
1127
-            
1127
+
1128
              }
1128
              }
1129
            })
1129
            })
1130
 
1130
 
1131
           }
1131
           }
1132
         })
1132
         })
1133
        },
1133
        },
1134
-        exportList: function() {
1135
-          for(let i=0;i<this.tableList.length;i++){
1136
-              this.tableList[i].index = i+1
1134
+        exportlist: function() {
1135
+          for(let i=0;i<this.tableData.length;i++){
1136
+              this.tableData[i].index = i+1
1137
+              this.tableData[i].record_date_str = this.getTime(this.tableData[i].record_date)
1138
+              if(this.tableData[i].reverse_osmosis_membrane_disinfection == 1){
1139
+                this.tableData[i].reverse_osmosis_membrane_disinfection_name = "√"
1140
+              }
1141
+              if(this.tableData[i].disinfection_of_water_pipeline == 1){
1142
+                 this.tableData[i].disinfection_of_water_pipeline_name = "√"
1143
+              }
1144
+              this.tableData[i].user_name = this.getDocName(this.tableData[i].admin_user_id)
1137
             }
1145
             }
1138
             import('@/vendor/Export2Excel').then(excel => {
1146
             import('@/vendor/Export2Excel').then(excel => {
1139
-              const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
1140
-              const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
1141
-              const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
1142
-              const filterVal = ['index', 'query_date', 'good_type','drug_name','specification_name','manufacturer_name','drugIn','drugInMoney','drugSaleMoney','drugAdd','drugAddPrice','drugAddSalePrice','drugOut','drugOutPrice','drugOutSalePrice','overDrug','overDrugPrice','oveDrugSaleMoney']
1143
 
1147
 
1144
-              const data = this.formatJson(filterVal, this.tableList)
1148
+              const multiHeader = [['序号', '日期', '原水参数' , '', '','', '一级反渗', '', '二级反渗' , '', '碳罐(MPa)','砂罐(MPa)', '树脂罐(MPa)','静谧过滤器(MPa)','水质监测','','','','消毒','','过滤器更换','记录人' ]]
1149
+              const header = ['', '', '原水电导度', '原水压力', '温度','加压泵', '产水电导度', '产水量', '产水电导度', '产水量', '','','','','硬度(mg/l)','总氯(mg/l)','PH值','过氧乙酸(mg/l)','反渗膜消毒','输水管道消毒','','',]
1150
+              const merges = ['A1:A2', 'B1:B2', 'C1:F1','G1:H1','I1:J1','K1:K2','L1:L2','M1:M2','N1:N2','O1:R1','S1:T1','U1:U2','V1:V2']
1151
+              const filterVal = ['index','record_date','water_conductivity','water_pressure','temperature','force_pump_status','first_ro_membrane_effluent','first_water_yield','last_production_of_water_conductivity','last_water_yield','carbon_tank','snd_tank','resin_tank','ultrafilter','hardness_monitoring','ph_detection','total_chlorine_detection','concentration_of_peroxyacetic_acid','reverse_osmosis_membrane_disinfection_name','disinfection_of_water_pipeline_name','filter_replacement','user_name']
1152
+              const data = this.formatJson(filterVal, this.tableData)
1145
 
1153
 
1146
-              const filename = '药品进销存查询'
1154
+              const filename = '水处理机使用登记'
1147
 
1155
 
1156
+              console.log("rwwwwwwwwwww",this.tableData)
1148
 
1157
 
1149
-                excel.export_json_to_excel({
1150
-                  multiHeader,
1151
-                  header,
1152
-                  merges,
1153
-                  data,
1154
-                  filename
1155
-                })
1158
+              excel.export_json_to_excel({
1159
+                multiHeader,
1160
+                header,
1161
+                merges,
1162
+                data,
1163
+                filename
1164
+              })
1156
             })
1165
             })
1157
         },
1166
         },
1158
         formatJson(filterVal, jsonData) {
1167
         formatJson(filterVal, jsonData) {
1210
     }
1219
     }
1211
   }
1220
   }
1212
   </style>
1221
   </style>
1213
-  
1214
 
1222
 
1215
-  
1223
+

+ 123 - 80
src/xt_pages/management/home.vue Wyświetl plik

871
                                                     {{scope.row.classtime}}
871
                                                     {{scope.row.classtime}}
872
                                                  </template>
872
                                                  </template>
873
                                         </el-table-column>
873
                                         </el-table-column>
874
-                                         <el-table-column label="表(床单元、床旁桌)消毒方式" align="center" min-width="110px"  >
874
+                                         <el-table-column label="表(床单元、床旁桌)消毒方式" align="center" min-width="110px"  >
875
                                                 <template slot-scope="scope">
875
                                                 <template slot-scope="scope">
876
                                                     {{scope.row.way}}
876
                                                     {{scope.row.way}}
877
                                                  </template>
877
                                                  </template>
878
                                         </el-table-column>
878
                                         </el-table-column>
879
-                                         <el-table-column label="表(床单元、床旁桌)消毒液" align="center" min-width="100px"  >
879
+                                         <el-table-column label="表(床单元、床旁桌)消毒液" align="center" min-width="100px"  >
880
                                                 <template slot-scope="scope">
880
                                                 <template slot-scope="scope">
881
                                                    {{scope.row.machine_disinfectant}}
881
                                                    {{scope.row.machine_disinfectant}}
882
                                                  </template>
882
                                                  </template>
893
                                         </el-table-column>
893
                                         </el-table-column>
894
                                         <el-table-column label="床单位更换" align="center" min-width="100px" >
894
                                         <el-table-column label="床单位更换" align="center" min-width="100px" >
895
                                                 <template slot-scope="scope">
895
                                                 <template slot-scope="scope">
896
-                                                  
896
+
897
                                                    <span v-if="scope.row.bed_way ==0">/</span>
897
                                                    <span v-if="scope.row.bed_way ==0">/</span>
898
                                                    <span v-if="scope.row.bed_way ==1">床单</span>
898
                                                    <span v-if="scope.row.bed_way ==1">床单</span>
899
                                                    <span v-if="scope.row.bed_way ==2">被套</span>
899
                                                    <span v-if="scope.row.bed_way ==2">被套</span>
1123
                                 </el-row>
1123
                                 </el-row>
1124
                                 <el-row>
1124
                                 <el-row>
1125
                                   <el-col :span="3">
1125
                                   <el-col :span="3">
1126
-                                      <el-form-item label="①机表(床单元床旁桌)"></el-form-item>
1126
+                                      <el-form-item label="①机表(床单元,床旁桌)"></el-form-item>
1127
                                   </el-col>
1127
                                   </el-col>
1128
                                   <el-col :span="10">
1128
                                   <el-col :span="10">
1129
                                      <el-form-item label="消毒方式:" required prop="disinfect_type">
1129
                                      <el-form-item label="消毒方式:" required prop="disinfect_type">
1382
                       <div v-show="zhiShow">
1382
                       <div v-show="zhiShow">
1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1384
                          <el-tab-pane label="新增质量控制" name="first">
1384
                          <el-tab-pane label="新增质量控制" name="first">
1385
-  
1385
+
1386
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1386
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1387
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1387
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1388
                              <el-row>
1388
                              <el-row>
1579
                                     </el-date-picker>
1579
                                     </el-date-picker>
1580
                                   </el-form-item>
1580
                                   </el-form-item>
1581
                                 </el-col>
1581
                                 </el-col>
1582
-                               
1582
+
1583
                                 <el-col :span="8">
1583
                                 <el-col :span="8">
1584
                                   <el-form-item label="顺序号:" required prop="sort">
1584
                                   <el-form-item label="顺序号:" required prop="sort">
1585
                                      <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
1585
                                      <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
1632
                               </el-row>
1632
                               </el-row>
1633
                             </el-form>
1633
                             </el-form>
1634
                             <el-divider></el-divider>
1634
                             <el-divider></el-divider>
1635
-                           
1636
 
1635
 
1637
-                          
1636
+
1637
+
1638
                           <div v-if="device_type == 1">
1638
                           <div v-if="device_type == 1">
1639
                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1639
                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1640
                             <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
1640
                             <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
1689
                                         </el-date-picker>
1689
                                         </el-date-picker>
1690
                                     </el-form-item>
1690
                                     </el-form-item>
1691
                                 </el-col>
1691
                                 </el-col>
1692
-                                
1692
+
1693
                               </el-row>
1693
                               </el-row>
1694
-                            
1694
+
1695
                               <el-row>
1695
                               <el-row>
1696
                                 <el-col :span="8">
1696
                                 <el-col :span="8">
1697
                                   <!-- <span>Na<sup>+</sup></span> -->
1697
                                   <!-- <span>Na<sup>+</sup></span> -->
1791
 
1791
 
1792
 
1792
 
1793
 
1793
 
1794
-                           
1794
+
1795
                             <el-divider></el-divider>
1795
                             <el-divider></el-divider>
1796
-                         </div>     
1797
-                             
1798
-                        
1796
+                         </div>
1797
+
1798
+
1799
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1799
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1800
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1800
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1801
                               <el-row>
1801
                               <el-row>
1866
                                     </el-date-picker>
1866
                                     </el-date-picker>
1867
                                   </el-form-item>
1867
                                   </el-form-item>
1868
                                 </el-col>
1868
                                 </el-col>
1869
-                               
1869
+
1870
                                 <el-col :span="8">
1870
                                 <el-col :span="8">
1871
                                   <el-form-item label="顺序号:" required prop="sort">
1871
                                   <el-form-item label="顺序号:" required prop="sort">
1872
                                      <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
1872
                                      <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
1993
                                     </el-date-picker>
1993
                                     </el-date-picker>
1994
                                   </el-form-item>
1994
                                   </el-form-item>
1995
                                 </el-col>
1995
                                 </el-col>
1996
-                               
1996
+
1997
                                 <el-col :span="8">
1997
                                 <el-col :span="8">
1998
                                   <el-form-item label="顺序号:" required prop="sort">
1998
                                   <el-form-item label="顺序号:" required prop="sort">
1999
                                      <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
1999
                                      <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
2046
                               </el-row>
2046
                               </el-row>
2047
                             </el-form>
2047
                             </el-form>
2048
                             <el-divider></el-divider>
2048
                             <el-divider></el-divider>
2049
-                            
2049
+
2050
 
2050
 
2051
 
2051
 
2052
 
2052
 
2120
                                       </el-date-picker>
2120
                                       </el-date-picker>
2121
                                     </el-form-item>
2121
                                     </el-form-item>
2122
                                   </el-col>
2122
                                   </el-col>
2123
-                                
2123
+
2124
                                   <el-col :span="8">
2124
                                   <el-col :span="8">
2125
                                     <el-form-item label="顺序号:" required prop="sort">
2125
                                     <el-form-item label="顺序号:" required prop="sort">
2126
                                       <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
2126
                                       <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
2174
                               </el-form>
2174
                               </el-form>
2175
                             <el-divider></el-divider>
2175
                             <el-divider></el-divider>
2176
 
2176
 
2177
-                           
2178
-                           
2177
+
2178
+
2179
                             <span style="margin-bottom: 20px;display: block;">PH值检测</span>
2179
                             <span style="margin-bottom: 20px;display: block;">PH值检测</span>
2180
                             <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
2180
                             <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
2181
                               <el-row>
2181
                               <el-row>
2246
                                     </el-date-picker>
2246
                                     </el-date-picker>
2247
                                   </el-form-item>
2247
                                   </el-form-item>
2248
                                 </el-col>
2248
                                 </el-col>
2249
-                               
2249
+
2250
                                 <el-col :span="8">
2250
                                 <el-col :span="8">
2251
                                   <el-form-item label="顺序号:" required prop="sort">
2251
                                   <el-form-item label="顺序号:" required prop="sort">
2252
                                      <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
2252
                                      <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
2302
 
2302
 
2303
 
2303
 
2304
 
2304
 
2305
-                          
2305
+
2306
 
2306
 
2307
                          </el-tab-pane>
2307
                          </el-tab-pane>
2308
 
2308
 
2316
                           暂无数据
2316
                           暂无数据
2317
                         </div>
2317
                         </div>
2318
                    </el-tab-pane>
2318
                    </el-tab-pane>
2319
-                   
2319
+
2320
                     <el-tab-pane label="维修维护" name="five">
2320
                     <el-tab-pane label="维修维护" name="five">
2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2322
                          <el-tab-pane label="新增维修维护" name="first">
2322
                          <el-tab-pane label="新增维修维护" name="first">
2351
                              <el-row>
2351
                              <el-row>
2352
                                  <el-col :span="8">
2352
                                  <el-col :span="8">
2353
                                   <el-form-item label="到达时间:">
2353
                                   <el-form-item label="到达时间:">
2354
-                                   
2354
+
2355
                                          <el-date-picker
2355
                                          <el-date-picker
2356
                                           type="datetime"
2356
                                           type="datetime"
2357
                                           format="yyyy-MM-dd HH:mm"
2357
                                           format="yyyy-MM-dd HH:mm"
2380
                                   </el-form-item>
2380
                                   </el-form-item>
2381
                                </el-col>
2381
                                </el-col>
2382
                              </el-row>
2382
                              </el-row>
2383
+                             <el-row>
2384
+                              <el-col :span="24">
2385
+                                  <el-form-item class="formItem" label="功能及附件检查:">
2386
+                                     <el-input
2387
+                                        type="textarea"
2388
+                                        :rows="2"
2389
+                                         placeholder="请输入内容"
2390
+                                         v-model="guaForm.function_accessories_inspection"
2391
+                                        style="width:85%">
2392
+                                     </el-input>
2393
+                                  </el-form-item>
2394
+                                </el-col>
2395
+                             </el-row>
2396
+                             <el-row>
2397
+                              <el-col :span="24">
2398
+                                  <el-form-item class="formItem" label="其他:">
2399
+                                     <el-input
2400
+                                        type="textarea"
2401
+                                        :rows="2"
2402
+                                         placeholder="请输入内容"
2403
+                                         v-model="guaForm.other_information"
2404
+                                        style="width:85%">
2405
+                                     </el-input>
2406
+                                  </el-form-item>
2407
+                                </el-col>
2408
+                             </el-row>
2383
                              <el-row>
2409
                              <el-row>
2384
                                <el-col :span="24">
2410
                                <el-col :span="24">
2385
                                   <el-form-item label="故障发生阶段">
2411
                                   <el-form-item label="故障发生阶段">
2404
                              </el-row>
2430
                              </el-row>
2405
                              <el-row>
2431
                              <el-row>
2406
                                 <el-col :span="8">
2432
                                 <el-col :span="8">
2407
-                                    <el-form-item label="故障描述:" required prop="fault_description">
2433
+                                    <el-form-item label="故障现象:" required prop="fault_description">
2408
                                         <el-input
2434
                                         <el-input
2409
                                            type="textarea"
2435
                                            type="textarea"
2410
                                            :rows="2"
2436
                                            :rows="2"
2415
                                     </el-form-item>
2441
                                     </el-form-item>
2416
                                 </el-col>
2442
                                 </el-col>
2417
                                  <el-col :span="8">
2443
                                  <el-col :span="8">
2418
-                                    <el-form-item label="原因分析:">
2444
+                                    <el-form-item label="维修内容:">
2419
                                         <el-input
2445
                                         <el-input
2420
                                            type="textarea"
2446
                                            type="textarea"
2421
                                            :rows="2"
2447
                                            :rows="2"
2426
                                     </el-form-item>
2452
                                     </el-form-item>
2427
                                 </el-col>
2453
                                 </el-col>
2428
                                  <el-col :span="8">
2454
                                  <el-col :span="8">
2429
-                                    <el-form-item label="处理过程:">
2455
+                                    <el-form-item label="维修结果:">
2430
                                         <el-input
2456
                                         <el-input
2431
                                            type="textarea"
2457
                                            type="textarea"
2432
                                            :rows="2"
2458
                                            :rows="2"
2468
                              </el-row>
2494
                              </el-row>
2469
                              <el-row>
2495
                              <el-row>
2470
                                <el-col :span="20">
2496
                                <el-col :span="20">
2471
-                                 <el-form-item label="原因:">
2497
+                                 <el-form-item label="备注:">
2472
                                       <el-input
2498
                                       <el-input
2473
                                           type="textarea"
2499
                                           type="textarea"
2474
                                           :rows="2"
2500
                                           :rows="2"
2479
                                  </el-form-item>
2505
                                  </el-form-item>
2480
                                </el-col>
2506
                                </el-col>
2481
                              </el-row>
2507
                              </el-row>
2508
+                             <el-row>
2509
+                               <el-col :span="20">
2510
+                                 <el-form-item label="维修者:">
2511
+                                   <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
2512
+                                           <el-option
2513
+                                            v-for="item in autograph"
2514
+                                           :key="item.admin_user_id"
2515
+                                           :label="item.user_name"
2516
+                                           :value="item.admin_user_id"
2517
+                                            style="width:185px">
2518
+                                           </el-option>
2519
+                                    </el-select>
2520
+                                 </el-form-item>
2521
+                               </el-col>
2522
+                             </el-row>
2482
                              <el-row>
2523
                              <el-row>
2483
                                 <div class="clearn">
2524
                                 <div class="clearn">
2484
                                   <el-col :span="4">
2525
                                   <el-col :span="4">
2807
           device_name: [{ required: true, message: '请填写序列号' }],
2848
           device_name: [{ required: true, message: '请填写序列号' }],
2808
           devicetype: [{ required: true, message: '请填写设备类型' }],
2849
           devicetype: [{ required: true, message: '请填写设备类型' }],
2809
           unit_type: [{ required: true, message: '请填写设备型号' }],
2850
           unit_type: [{ required: true, message: '请填写设备型号' }],
2810
-        
2851
+
2811
         },
2852
         },
2812
         qualitRules: {
2853
         qualitRules: {
2813
           detection_unit: [{ required: true, message: '请填写检测单位' }],
2854
           detection_unit: [{ required: true, message: '请填写检测单位' }],
3208
           exclude: '',
3249
           exclude: '',
3209
           reason: '',
3250
           reason: '',
3210
           code_information: '',
3251
           code_information: '',
3211
-          imageName: ''
3252
+          imageName: '',
3253
+          function_accessories_inspection:"",
3254
+          other_information:'',
3212
         },
3255
         },
3213
 
3256
 
3214
         filename: '',
3257
         filename: '',
3372
               }
3415
               }
3373
 
3416
 
3374
             }
3417
             }
3375
-            
3418
+
3376
           }
3419
           }
3377
         })
3420
         })
3378
       },
3421
       },
3411
           if (response.data.state === 1) {
3454
           if (response.data.state === 1) {
3412
             var addmacher = response.data.data.addmacher
3455
             var addmacher = response.data.data.addmacher
3413
             var warning = response.data.data.warning
3456
             var warning = response.data.data.warning
3414
-          
3457
+
3415
             var time = this.getTimestamp(this.userform.date) - warning.stime
3458
             var time = this.getTimestamp(this.userform.date) - warning.stime
3416
             var germ = response.data.data.germ
3459
             var germ = response.data.data.germ
3417
-          
3460
+
3418
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
3461
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
3419
-           
3462
+
3420
             var clean = response.data.data.clean
3463
             var clean = response.data.data.clean
3421
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
3464
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
3422
             var number = response.data.data.number
3465
             var number = response.data.data.number
3423
-          
3466
+
3424
             this.Number = number
3467
             this.Number = number
3425
             if (addmacher.device_type === 1) {
3468
             if (addmacher.device_type === 1) {
3426
               this.sShow = false
3469
               this.sShow = false
3461
             var zone = response.data.data.zone
3504
             var zone = response.data.data.zone
3462
 
3505
 
3463
             const arr1 = []
3506
             const arr1 = []
3464
-          
3507
+
3465
             for (let index = 0; index < mode.length; index++) {
3508
             for (let index = 0; index < mode.length; index++) {
3466
               if (mode[index].treate_mode === 1) {
3509
               if (mode[index].treate_mode === 1) {
3467
                 mode[index] = 'HD'
3510
                 mode[index] = 'HD'
3550
             this.form.machine_status = addmacher.machine_status
3593
             this.form.machine_status = addmacher.machine_status
3551
             this.form.user_total = addmacher.user_total
3594
             this.form.user_total = addmacher.user_total
3552
             this.form.remarks = addmacher.remarks
3595
             this.form.remarks = addmacher.remarks
3553
-           
3596
+
3554
             if (addmacher.rubbish_date !== 0) {
3597
             if (addmacher.rubbish_date !== 0) {
3555
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
3598
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
3556
             }
3599
             }
3657
         var bed_numberss = parseInt(bed_numbers)
3700
         var bed_numberss = parseInt(bed_numbers)
3658
         this.form.bed_number = bed_numberss
3701
         this.form.bed_number = bed_numberss
3659
         this.$refs[formName].validate(valid => {
3702
         this.$refs[formName].validate(valid => {
3660
-          UpdateMachineInfo(this.form).then(response => {         
3703
+          UpdateMachineInfo(this.form).then(response => {
3661
             if (response.data.state === 1) {
3704
             if (response.data.state === 1) {
3662
-              var addmacher = response.data.data.addmacher         
3663
-              this.$message.success('修改成功')           
3705
+              var addmacher = response.data.data.addmacher
3706
+              this.$message.success('修改成功')
3664
               for (let i = 0; i < this.tableDatatwo.length; i++) {
3707
               for (let i = 0; i < this.tableDatatwo.length; i++) {
3665
                 if (this.tableDatatwo[i].id == addmacher.id) {
3708
                 if (this.tableDatatwo[i].id == addmacher.id) {
3666
                   for (let j = 0; j < this.deviceMode.length; j++) {
3709
                   for (let j = 0; j < this.deviceMode.length; j++) {
3667
                     if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3710
                     if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3668
                       addmacher.device_mode = this.deviceMode[j].device_mode
3711
                       addmacher.device_mode = this.deviceMode[j].device_mode
3669
-                    
3712
+
3670
                     }
3713
                     }
3671
                   }
3714
                   }
3672
 
3715
 
4327
             }
4370
             }
4328
             this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
4371
             this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
4329
             this.userform.patient_name = patients.name
4372
             this.userform.patient_name = patients.name
4330
-            this.userform.patient_id = patients.patient_id 
4373
+            this.userform.patient_id = patients.patient_id
4331
             var zone = response.data.data.zone
4374
             var zone = response.data.data.zone
4332
             this.userform.zone = zone.id
4375
             this.userform.zone = zone.id
4333
             var number = response.data.data.number
4376
             var number = response.data.data.number
4472
         this.userform.user_total = parseInt(this.userform.user_total)
4515
         this.userform.user_total = parseInt(this.userform.user_total)
4473
 
4516
 
4474
         console.log("user_form",this.userform)
4517
         console.log("user_form",this.userform)
4475
-      
4518
+
4476
         this.$refs[formName].validate((valid) => {
4519
         this.$refs[formName].validate((valid) => {
4477
           if (valid) {
4520
           if (valid) {
4478
             SaveInformation(this.equimentid, this.userform).then(response => {
4521
             SaveInformation(this.equimentid, this.userform).then(response => {
4652
         var samplinglocationa = this.qualityForm.sampling_locationa
4695
         var samplinglocationa = this.qualityForm.sampling_locationa
4653
         var samplinglocationas = parseInt(samplinglocationa)
4696
         var samplinglocationas = parseInt(samplinglocationa)
4654
         this.qualityForm.sampling_locationa = samplinglocationas
4697
         this.qualityForm.sampling_locationa = samplinglocationas
4655
-        
4698
+
4656
         //  if(this.qualityForm.pass_examination!=''){
4699
         //  if(this.qualityForm.pass_examination!=''){
4657
         //    this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
4700
         //    this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
4658
         //  }
4701
         //  }
4659
          if(this.qualityForm.modifications!=''){
4702
          if(this.qualityForm.modifications!=''){
4660
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4703
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4661
          }
4704
          }
4662
-       
4705
+
4663
         console.log("3333333",this.qualityForm)
4706
         console.log("3333333",this.qualityForm)
4664
-       
4707
+
4665
         this.$refs[formName].validate(response => {
4708
         this.$refs[formName].validate(response => {
4666
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
4709
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
4667
             if (response.data.state === 1) {
4710
             if (response.data.state === 1) {
4689
         this.qualityForm.detection_result = ''
4732
         this.qualityForm.detection_result = ''
4690
       },
4733
       },
4691
       SaveLincomycin(formName) {
4734
       SaveLincomycin(formName) {
4692
-       
4735
+
4693
         this.$refs[formName].validate((valid) => {
4736
         this.$refs[formName].validate((valid) => {
4694
           if (this.qualityFormTwo.specimenb === '') {
4737
           if (this.qualityFormTwo.specimenb === '') {
4695
             this.qualityFormTwo.specimenb = 0
4738
             this.qualityFormTwo.specimenb = 0
4705
           var sampling = this.qualityFormTwo.sampling_locationb
4748
           var sampling = this.qualityFormTwo.sampling_locationb
4706
           var samplings = parseInt(sampling)
4749
           var samplings = parseInt(sampling)
4707
           this.qualityFormTwo.sampling_locationb = samplings
4750
           this.qualityFormTwo.sampling_locationb = samplings
4708
-           
4709
-       
4751
+
4752
+
4710
           if(this.qualityFormTwo.modifications!=''){
4753
           if(this.qualityFormTwo.modifications!=''){
4711
             this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
4754
             this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
4712
           }
4755
           }
4713
-       
4714
-      
4756
+
4757
+
4715
           if (valid) {
4758
           if (valid) {
4716
             SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
4759
             SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
4717
               if (response.data.state === 1) {
4760
               if (response.data.state === 1) {
4723
                 this.qualityFormTwo.concentrateb_nod = ''
4766
                 this.qualityFormTwo.concentrateb_nod = ''
4724
                 this.qualityFormTwo.sampling_locationb = ''
4767
                 this.qualityFormTwo.sampling_locationb = ''
4725
                 this.qualityFormTwo.detection_resultb = ''
4768
                 this.qualityFormTwo.detection_resultb = ''
4726
-               
4727
-              
4769
+
4770
+
4728
                 this.$refs.mychild.getAllQulityInfo()
4771
                 this.$refs.mychild.getAllQulityInfo()
4729
               }
4772
               }
4730
             })
4773
             })
4743
       SaveQualityControl(formName) {
4786
       SaveQualityControl(formName) {
4744
         this.$refs[formName].validate((valid) => {
4787
         this.$refs[formName].validate((valid) => {
4745
           if (valid) {
4788
           if (valid) {
4746
-             
4789
+
4747
               if(this.qualityFormThree.modifications!=''){
4790
               if(this.qualityFormThree.modifications!=''){
4748
                 this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
4791
                 this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
4749
               }
4792
               }
4750
-            
4793
+
4751
             SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
4794
             SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
4752
               if (response.data.state === 1) {
4795
               if (response.data.state === 1) {
4753
                 var ion = response.data.data.ion
4796
                 var ion = response.data.data.ion
4995
             var deviceInformation = response.data.data.deviceInformation
5038
             var deviceInformation = response.data.data.deviceInformation
4996
             var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
5039
             var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
4997
             var clean = response.data.data.clean
5040
             var clean = response.data.data.clean
4998
-          
5041
+
4999
           }
5042
           }
5000
         })
5043
         })
5001
       },
5044
       },
5098
          GetUserTotalCount(bedid).then(response=>{
5141
          GetUserTotalCount(bedid).then(response=>{
5099
             if(response.data.state == 1){
5142
             if(response.data.state == 1){
5100
               var count =  response.data.data.count
5143
               var count =  response.data.data.count
5101
-              var addmacher = response.data.data.addmacher 
5144
+              var addmacher = response.data.data.addmacher
5102
               if(addmacher.user_total == ''){
5145
               if(addmacher.user_total == ''){
5103
                   addmacher.user_total = 0
5146
                   addmacher.user_total = 0
5104
-              }   
5147
+              }
5105
               // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5148
               // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5106
             }
5149
             }
5107
          })
5150
          })
5124
           var sampling = this.qualityFormFour.sampling_locationb
5167
           var sampling = this.qualityFormFour.sampling_locationb
5125
           var samplings = parseInt(sampling)
5168
           var samplings = parseInt(sampling)
5126
           this.qualityFormFour.sampling_locationb = samplings
5169
           this.qualityFormFour.sampling_locationb = samplings
5127
-           
5128
-        
5170
+
5171
+
5129
           if(this.qualityFormFour.modifications!=''){
5172
           if(this.qualityFormFour.modifications!=''){
5130
             this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
5173
             this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
5131
           }
5174
           }
5132
-       
5175
+
5133
           if (valid) {
5176
           if (valid) {
5134
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5177
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5135
               if (response.data.state === 1) {
5178
               if (response.data.state === 1) {
5140
                 this.qualityFormFour.concentrate_noc = ''
5183
                 this.qualityFormFour.concentrate_noc = ''
5141
                 this.qualityFormFour.concentrateb_nod = ''
5184
                 this.qualityFormFour.concentrateb_nod = ''
5142
                 this.qualityFormFour.sampling_locationb = ''
5185
                 this.qualityFormFour.sampling_locationb = ''
5143
-             
5186
+
5144
                 this.qualityFormFour.detection_resultb = ''
5187
                 this.qualityFormFour.detection_resultb = ''
5145
-                
5146
-              
5188
+
5189
+
5147
                 this.$refs.mychild.getAllQulityInfo()
5190
                 this.$refs.mychild.getAllQulityInfo()
5148
               }
5191
               }
5149
             })
5192
             })
5168
           var sampling = this.qualityFormFive.sampling_locationb
5211
           var sampling = this.qualityFormFive.sampling_locationb
5169
           var samplings = parseInt(sampling)
5212
           var samplings = parseInt(sampling)
5170
           this.qualityFormFive.sampling_locationb = samplings
5213
           this.qualityFormFive.sampling_locationb = samplings
5171
-           
5172
-        
5214
+
5215
+
5173
           if(this.qualityFormFive.modifications!=''){
5216
           if(this.qualityFormFive.modifications!=''){
5174
             this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
5217
             this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
5175
           }
5218
           }
5176
-       
5219
+
5177
           if (valid) {
5220
           if (valid) {
5178
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5221
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5179
               if (response.data.state === 1) {
5222
               if (response.data.state === 1) {
5185
                 this.qualityFormFive.concentrateb_nod = ''
5228
                 this.qualityFormFive.concentrateb_nod = ''
5186
                 this.qualityFormFive.sampling_locationb = ''
5229
                 this.qualityFormFive.sampling_locationb = ''
5187
                 this.qualityFormFive.detection_resultb = ''
5230
                 this.qualityFormFive.detection_resultb = ''
5188
-               
5189
-              
5231
+
5232
+
5190
                 this.$refs.mychild.getAllQulityInfo()
5233
                 this.$refs.mychild.getAllQulityInfo()
5191
               }
5234
               }
5192
             })
5235
             })
5211
           var sampling = this.qualityFormSix.sampling_locationb
5254
           var sampling = this.qualityFormSix.sampling_locationb
5212
           var samplings = parseInt(sampling)
5255
           var samplings = parseInt(sampling)
5213
           this.qualityFormSix.sampling_locationb = samplings
5256
           this.qualityFormSix.sampling_locationb = samplings
5214
-           
5215
-       
5257
+
5258
+
5216
           if(this.qualityFormSix.modifications!=''){
5259
           if(this.qualityFormSix.modifications!=''){
5217
             this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
5260
             this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
5218
           }
5261
           }
5219
-       
5262
+
5220
           if (valid) {
5263
           if (valid) {
5221
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5264
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5222
               if (response.data.state === 1) {
5265
               if (response.data.state === 1) {
5228
                 this.qualityFormSix.concentrateb_nod = ''
5271
                 this.qualityFormSix.concentrateb_nod = ''
5229
                 this.qualityFormSix.sampling_locationb = ''
5272
                 this.qualityFormSix.sampling_locationb = ''
5230
                 this.qualityFormSix.detection_resultb = ''
5273
                 this.qualityFormSix.detection_resultb = ''
5231
-             
5232
-              
5274
+
5275
+
5233
                 this.$refs.child.getAllQulityInfo()
5276
                 this.$refs.child.getAllQulityInfo()
5234
               }else{
5277
               }else{
5235
                 this.qualityFormSix.pass_examination = "1"
5278
                 this.qualityFormSix.pass_examination = "1"
5256
           var sampling = this.qualityFormSeven.sampling_locationb
5299
           var sampling = this.qualityFormSeven.sampling_locationb
5257
           var samplings = parseInt(sampling)
5300
           var samplings = parseInt(sampling)
5258
           this.qualityFormSeven.sampling_locationb = samplings
5301
           this.qualityFormSeven.sampling_locationb = samplings
5259
-           
5260
-       
5302
+
5303
+
5261
           if(this.qualityFormSeven.modifications!=''){
5304
           if(this.qualityFormSeven.modifications!=''){
5262
             this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
5305
             this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
5263
           }
5306
           }
5264
-       
5307
+
5265
           if (valid) {
5308
           if (valid) {
5266
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5309
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5267
               if (response.data.state === 1) {
5310
               if (response.data.state === 1) {
5273
                 this.qualityFormSeven.concentrateb_nod = ''
5316
                 this.qualityFormSeven.concentrateb_nod = ''
5274
                 this.qualityFormSeven.sampling_locationb = ''
5317
                 this.qualityFormSeven.sampling_locationb = ''
5275
                 this.qualityFormSeven.detection_resultb = ''
5318
                 this.qualityFormSeven.detection_resultb = ''
5276
-              
5277
-              
5319
+
5320
+
5278
                 this.$refs.mychild.getAllQulityInfo()
5321
                 this.$refs.mychild.getAllQulityInfo()
5279
               }
5322
               }
5280
             })
5323
             })
5296
       this.getAllpatient()
5339
       this.getAllpatient()
5297
       this.getAllMode()
5340
       this.getAllMode()
5298
       this.GetUserTotalCount(bedid)
5341
       this.GetUserTotalCount(bedid)
5299
-      
5342
+
5300
 
5343
 
5301
   }
5344
   }
5302
   }
5345
   }

+ 1 - 1
src/xt_pages/outpatientCharges/components/chargeDialog.vue Wyświetl plik

349
         //初始化
349
         //初始化
350
         this.form.tmp_decimal = 0
350
         this.form.tmp_decimal = 0
351
         this.tmp_pay = 0
351
         this.tmp_pay = 0
352
-        this.id = id
352
+        this.id =id
353
         this.form.dec_way = false
353
         this.form.dec_way = false
354
         this.updateconfig()
354
         this.updateconfig()
355
         this.form.total = total
355
         this.form.total = total

+ 2 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

1265
               } else {
1265
               } else {
1266
                 that.pwdFormVisible = false
1266
                 that.pwdFormVisible = false
1267
                 if (that.activeName == 'first') {
1267
                 if (that.activeName == 'first') {
1268
-                  that.$refs.charge.show(that.getTotalFour(that.other_prescriptions), that.currentOrder)
1268
+                  that.$refs.charge.show(that.getTotalFour(that.other_prescriptions), that.currentOrder,that.patientInfo.id)
1269
                 } else {
1269
                 } else {
1270
-                  that.$refs.charge.show(that.getTotalFour(that.other_prescriptions), that.currentOrder)
1270
+                  that.$refs.charge.show(that.getTotalFour(that.other_prescriptions), that.currentOrder,that.patientInfo.id)
1271
                 }
1271
                 }
1272
               }
1272
               }
1273
 
1273
 

+ 5 - 4
src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue Wyświetl plik

127
                 <td colspan="7">
127
                 <td colspan="7">
128
                   <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
128
                   <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
129
                     <div style="width:33%;">医疗费总额:{{infos.order.medfee_sumamt?infos.order.medfee_sumamt:""}}元</div>
129
                     <div style="width:33%;">医疗费总额:{{infos.order.medfee_sumamt?infos.order.medfee_sumamt:""}}元</div>
130
-                    <div style="width:33%;">基金支付金额:{{infos.order.fund_pay_sumamt?infos.order.fund_pay_sumamt:""}}元</div>
130
+                    <div style="width:33%;">基金支付金额:{{ (infos.order.hifp_pay + infos.order.maf_pay + infos.order.hifmi_pay).toFixed(2)}}元</div>
131
+
131
                     <div style="width:33%;">个人账户支付金额:{{infos.order.acct_pay?infos.order.acct_pay:""}}元</div>
132
                     <div style="width:33%;">个人账户支付金额:{{infos.order.acct_pay?infos.order.acct_pay:""}}元</div>
132
 
133
 
133
                   </div>
134
                   </div>
136
                     <div style="width:33%;">个人支付金额:{{ infos.order.psn_cash_pay}}元</div>
137
                     <div style="width:33%;">个人支付金额:{{ infos.order.psn_cash_pay}}元</div>
137
                     <div style="width:33%;">个人账户金额:{{infos.order.balc}}元</div>
138
                     <div style="width:33%;">个人账户金额:{{infos.order.balc}}元</div>
138
                   </div>
139
                   </div>
139
-                  <div style="display:flex;flez-wrap:wrap;font-size:16px;margin-top: 10px">
140
-                    <div style="width:33%;">基金统筹支付金额:{{infos.order.hifp_pay?infos.order.hifp_pay:""}}元</div>
141
-                  </div>
140
+<!--                  <div style="display:flex;flez-wrap:wrap;font-size:16px;margin-top: 10px">-->
141
+<!--&lt;!&ndash;                    <div style="width:33%;">基金统筹支付金额:{{infos.order.hifp_pay?infos.order.hifp_pay:""}}元</div>&ndash;&gt;-->
142
+<!--                  </div>-->
142
                 </td>
143
                 </td>
143
                 <td style="font-size:16px;">合计:{{infos.order.medfee_sumamt}}元</td>
144
                 <td style="font-size:16px;">合计:{{infos.order.medfee_sumamt}}元</td>
144
               </tr>
145
               </tr>

+ 4 - 4
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue Wyświetl plik

123
                         <td colspan="7">
123
                         <td colspan="7">
124
                             <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
124
                             <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
125
                                 <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</div>
125
                                 <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</div>
126
-                                <div style="width:33%;">基金支付金额:{{info.fund_pay_sumamt?info.fund_pay_sumamt:info.new_order.fund_pay_sumamt}}元</div>
126
+                                <div style="width:33%;">基金支付金额:{{ (info.new_order.hifp_pay + info.new_order.maf_pay + info.new_order.hifmi_pay).toFixed(2)}}元</div>
127
                                 <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:info.new_order.acct_pay}}元</div>
127
                                 <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:info.new_order.acct_pay}}元</div>
128
 
128
 
129
                             </div>
129
                             </div>
132
                                 <div style="width:33%;">个人支付金额:{{ info.new_order.psn_cash_pay}}元</div>
132
                                 <div style="width:33%;">个人支付金额:{{ info.new_order.psn_cash_pay}}元</div>
133
                                 <div style="width:33%;">个人账户金额:{{info.new_order.balc}}元</div>
133
                                 <div style="width:33%;">个人账户金额:{{info.new_order.balc}}元</div>
134
                             </div>
134
                             </div>
135
-                          <div style="display:flex;flez-wrap:wrap;font-size:16px;margin-top: 10px">
136
-                            <div style="width:33%;">基金统筹支付金额:{{info.hifp_pay?info.hifp_pay:info.new_order.hifp_pay}}元</div>
137
-                          </div>
135
+<!--                          <div style="display:flex;flez-wrap:wrap;font-size:16px;margin-top: 10px">-->
136
+<!--&lt;!&ndash;                            <div style="width:33%;">基金统筹支付金额:{{info.hifp_pay?info.hifp_pay:info.new_order.hifp_pay}}元</div>&ndash;&gt;-->
137
+<!--                          </div>-->
138
                         </td>
138
                         </td>
139
                         <td style="font-size:16px;">合计:{{info.new_order.medfee_sumamt}}元</td>
139
                         <td style="font-size:16px;">合计:{{info.new_order.medfee_sumamt}}元</td>
140
                     </tr>
140
                     </tr>