Bladeren bron

新分支

28169 2 jaren geleden
bovenliggende
commit
edaf9c9718

+ 525 - 9
src/xt_pages/management/components/RepairForm.vue Bestand weergeven

@@ -1,7 +1,8 @@
1 1
 <template>
2 2
   <div>
3
+    <div>
3 4
     <el-row class="row">
4
-      <el-col :span="5">
5
+      <!-- <el-col :span="5">
5 6
         <span class="machineClass">机号:</span>
6 7
         <el-select style="width:100px" v-model="forms.bed">
7 8
           <el-option
@@ -11,7 +12,7 @@
11 12
             :value="item.id"
12 13
           ></el-option>
13 14
         </el-select>
14
-      </el-col>
15
+      </el-col> -->
15 16
       <el-col :span="11">
16 17
         <span class="machineClass">日期查询:</span>
17 18
         <el-date-picker
@@ -47,8 +48,13 @@
47 48
       <el-col :span="2">
48 49
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49 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 55
     </el-row>
51 56
     <el-row>
57
+
52 58
       <el-table
53 59
         ref="multipleTable"
54 60
         @selection-change="handleSelectionChange"
@@ -62,6 +68,125 @@
62 68
         fit
63 69
         highlight-current-row
64 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 191
         <el-table-column
67 192
           align="center"
@@ -209,7 +334,7 @@
209 334
             </el-tooltip>
210 335
           </template>
211 336
         </el-table-column>
212
-      </el-table>
337
+      </el-table> -->
213 338
       <el-pagination
214 339
         @size-change="handleSizeChange"
215 340
         @current-change="handleCurrentChange"
@@ -291,6 +416,32 @@
291 416
             </el-form-item>
292 417
           </el-col>
293 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 445
         <el-row>
295 446
           <el-col :span="24">
296 447
             <el-form-item label="故障发生阶段">
@@ -321,7 +472,7 @@
321 472
         </el-row>
322 473
         <el-row>
323 474
           <el-col :span="8">
324
-            <el-form-item label="故障描述:" required prop="fault_description">
475
+            <el-form-item label="故障现象:" required prop="fault_description">
325 476
               <el-input
326 477
                 type="textarea"
327 478
                 :rows="2"
@@ -332,7 +483,7 @@
332 483
             </el-form-item>
333 484
           </el-col>
334 485
           <el-col :span="8">
335
-            <el-form-item label="原因分析:">
486
+            <el-form-item label="维修内容:">
336 487
               <el-input
337 488
                 type="textarea"
338 489
                 :rows="2"
@@ -343,7 +494,7 @@
343 494
             </el-form-item>
344 495
           </el-col>
345 496
           <el-col :span="8">
346
-            <el-form-item label="处理过程:">
497
+            <el-form-item label="维修结果:">
347 498
               <el-input
348 499
                 type="textarea"
349 500
                 :rows="2"
@@ -393,7 +544,7 @@
393 544
         </el-row>
394 545
         <el-row>
395 546
           <el-col :span="20">
396
-            <el-form-item label="原因:">
547
+            <el-form-item label="备注:">
397 548
               <el-input
398 549
                 type="textarea"
399 550
                 :rows="2"
@@ -404,6 +555,21 @@
404 555
             </el-form-item>
405 556
           </el-col>
406 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 573
       </el-form>
408 574
       <span slot="footer" class="dialog-footer">
409 575
 <!--        <button @click="lili">调试</button>-->
@@ -413,6 +579,272 @@
413 579
         >
414 580
       </span>
415 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 848
   </div>
417 849
 </template>
418 850
 
@@ -428,10 +860,13 @@ import {
428 860
 } from "@/api/manage";
429 861
 import { uParseTime } from "@/utils/tools";
430 862
 import { getFileExtension } from "@/utils/tools";
863
+import print from "print-js";
864
+const moment = require("moment");
431 865
 export default {
432 866
   name: "RepairForm",
433 867
   data() {
434 868
     return {
869
+      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
435 870
       dialogVisible: false,
436 871
       selectCulture: [],
437 872
       forms: {
@@ -455,7 +890,10 @@ export default {
455 890
         exclude: "",
456 891
         reason: "",
457 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 898
       isIndeterminate: false,
461 899
       checkAllStatus: false,
@@ -483,6 +921,9 @@ export default {
483 921
       limit: 10,
484 922
       page: 1,
485 923
       total: 0,
924
+      macherList:[],
925
+      docList:[],
926
+      hiddenShow:false,
486 927
     };
487 928
   },
488 929
   methods: {
@@ -515,6 +956,10 @@ export default {
515 956
         if (response.data.state === 1) {
516 957
           var repair = response.data.data.repair;
517 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 963
           // eslint-disable-next-line no-unused-vars
519 964
           var total = response.data.data.total;
520 965
           this.total = total;
@@ -553,6 +998,7 @@ export default {
553 998
               repair[index].exclude = "未解决";
554 999
             }
555 1000
           }
1001
+          console.log("repair------",repair)
556 1002
           this.tableData = repair;
557 1003
         }
558 1004
       });
@@ -575,6 +1021,7 @@ export default {
575 1021
         if (response.data.state === 1) {
576 1022
           var repair = response.data.data.repair;
577 1023
           console.log("repair", repair);
1024
+          this.docList = response.data.data.docList
578 1025
           this.guaForm.guarantee_date = uParseTime(
579 1026
             repair.guarantee_date,
580 1027
             "{y}-{m}-{d}"
@@ -602,6 +1049,9 @@ export default {
602 1049
           this.guaForm.code_information = repair.code_information;
603 1050
           this.guaForm.id = repair.id;
604 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,7 +1257,51 @@ export default {
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 1306
   created() {
813 1307
     this.getAllSubregion();
@@ -816,8 +1310,30 @@ export default {
816 1310
 };
817 1311
 </script>
818 1312
 
1313
+
819 1314
 <style scoped>
1315
+
820 1316
 .row {
821 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 1339
 </style>

+ 77 - 3
src/xt_pages/management/components/UserForm.vue Bestand weergeven

@@ -62,6 +62,7 @@
62 62
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
63 63
       </el-col>
64 64
       <el-col :span="6">
65
+        <el-button type="primary" @click="exportlist">导出</el-button>
65 66
         <el-button type="primary" @click="printCard">打印</el-button>
66 67
       </el-col>
67 68
     </el-row>
@@ -475,7 +476,7 @@
475 476
         </el-row>
476 477
         <el-row>
477 478
           <el-col :span="2">
478
-            <el-form-item label="①机表"></el-form-item>
479
+            <el-form-item label="①机表(床单元、床旁桌)"></el-form-item>
479 480
           </el-col>
480 481
           <el-col :span="8">
481 482
             <el-form-item label="消毒方式:" style="width:200px">
@@ -827,6 +828,12 @@
827 828
                 >
828 829
                   透析方式
829 830
                 </td>
831
+                <td
832
+                  :rowspan="2"
833
+                  style="text-align:center;width:60px;font-size:15px"
834
+                >
835
+                  使用次数
836
+                </td>
830 837
                 <td
831 838
                   :rowspan="2"
832 839
                   style="text-align:center;width:60px;font-size:15px"
@@ -837,7 +844,7 @@
837 844
                   :colspan="4"
838 845
                   style="text-align:center;width:60px;font-size:15px"
839 846
                 >
840
-                  机表消毒
847
+                  机表(床单元、床旁桌)消毒
841 848
                 </td>
842 849
                 <td
843 850
                   :colspan="5"
@@ -845,6 +852,24 @@
845 852
                 >
846 853
                   液路消毒
847 854
                 </td>
855
+                <td
856
+                  :rowspan="2"
857
+                  style="text-align:center;width:80px;font-size:15px"
858
+                >
859
+                 透析机消毒液(更换)
860
+                </td>
861
+                <td
862
+                  :rowspan="2"
863
+                  style="text-align:center;width:80px;font-size:15px"
864
+                >
865
+                 细菌过滤器(更换)
866
+                </td>
867
+                <td
868
+                  :rowspan="2"
869
+                  style="text-align:center;width:80px;font-size:15px"
870
+                >
871
+                 空气滤网
872
+                </td>
848 873
                 <td
849 874
                   :rowspan="2"
850 875
                   style="text-align:center;width:80px;font-size:15px"
@@ -897,6 +922,9 @@
897 922
                 <td style="text-align:center;font-size:15px;height:30px">
898 923
                   {{ item.dialysis_mode }}
899 924
                 </td>
925
+                <td style="text-align:center;font-size:15px;height:30px">
926
+                  {{ item.user_total }}
927
+                </td>
900 928
                 <td style="text-align:center;font-size:15px;height:30px">
901 929
                   {{ item.move }}
902 930
                 </td>
@@ -927,6 +955,16 @@
927 955
                 <td style="text-align:center;font-size:15px;height:30px">
928 956
                   {{ item.disinfection_residue }}
929 957
                 </td>
958
+                <td style="text-align:center;font-size:15px;height:30px">
959
+                   {{item.dialysis_checked }}
960
+                </td>
961
+                <td style="text-align:center;font-size:15px;height:30px">
962
+                  {{item.germ_checked }}
963
+                </td>
964
+                <td style="text-align:center;font-size:15px;height:30px">
965
+                  {{item.clean}}
966
+                </td>
967
+              
930 968
                 <td style="text-align:center;font-size:15px;height:30px">
931 969
                   {{ item.user_name }}
932 970
                 </td>
@@ -2493,7 +2531,43 @@ export default {
2493 2531
           }
2494 2532
         });
2495 2533
       });
2496
-    }
2534
+
2535
+      
2536
+    },
2537
+   
2538
+    exportlist: function() {
2539
+        for(let i=0;i<this.tableData.length;i++){
2540
+            this.tableData[i].index = i+1
2541
+
2542
+           
2543
+            this.tableData[i].record_date_str =  this.getTime(this.tableData[i].date)
2544
+           this.tableData[i].disinfec_startime_str = this.getTimesTwo(this.tableData[i].disinfec_startime) 
2545
+           this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2546
+          }
2547
+          import('@/vendor/Export2Excel').then(excel => {
2548
+          
2549
+            const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2550
+            const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
2551
+            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']
2552
+            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']
2553
+            const data = this.formatJson(filterVal, this.tableData)
2554
+
2555
+            const filename = '透析机使用登记'
2556
+
2557
+            console.log("rwwwwwwwwwww",this.tableData)
2558
+            
2559
+            excel.export_json_to_excel({
2560
+              multiHeader,
2561
+              header,
2562
+              merges,
2563
+              data,
2564
+              filename
2565
+            })
2566
+          })
2567
+      },
2568
+      formatJson(filterVal, jsonData) {
2569
+        return jsonData.map(v => filterVal.map(j => v[j]));
2570
+      },
2497 2571
   },
2498 2572
   created() {
2499 2573
     this.getAllSubregion();

+ 29 - 22
src/xt_pages/management/components/WaterFormList.vue Bestand weergeven

@@ -1131,30 +1131,37 @@
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
1137
-             
1138
-
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)
1139 1145
             }
1140 1146
             import('@/vendor/Export2Excel').then(excel => {
1141
-              const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
1142
-              const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
1143
-              const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
1144
-              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']
1145
-
1146
-              const data = this.formatJson(filterVal, this.tableList)
1147
-
1148
-              const filename = '药品进销存查询'
1149
-
1150
-
1151
-                excel.export_json_to_excel({
1152
-                  multiHeader,
1153
-                  header,
1154
-                  merges,
1155
-                  data,
1156
-                  filename
1157
-                })
1147
+            
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)
1153
+
1154
+              const filename = '水处理机使用登记'
1155
+ 
1156
+              console.log("rwwwwwwwwwww",this.tableData)
1157
+              
1158
+              excel.export_json_to_excel({
1159
+                multiHeader,
1160
+                header,
1161
+                merges,
1162
+                data,
1163
+                filename
1164
+              })
1158 1165
             })
1159 1166
         },
1160 1167
         formatJson(filterVal, jsonData) {

+ 51 - 8
src/xt_pages/management/home.vue Bestand weergeven

@@ -871,12 +871,12 @@
871 871
                                                     {{scope.row.classtime}}
872 872
                                                  </template>
873 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 875
                                                 <template slot-scope="scope">
876 876
                                                     {{scope.row.way}}
877 877
                                                  </template>
878 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 880
                                                 <template slot-scope="scope">
881 881
                                                    {{scope.row.machine_disinfectant}}
882 882
                                                  </template>
@@ -1125,7 +1125,7 @@
1125 1125
                                 </el-row>
1126 1126
                                 <el-row>
1127 1127
                                   <el-col :span="3">
1128
-                                      <el-form-item label="①机表"></el-form-item>
1128
+                                      <el-form-item label="①机表(床单元,床旁桌)"></el-form-item>
1129 1129
                                   </el-col>
1130 1130
                                   <el-col :span="10">
1131 1131
                                      <el-form-item label="消毒方式:" required prop="disinfect_type">
@@ -2381,6 +2381,32 @@
2381 2381
                                   </el-form-item>
2382 2382
                                </el-col>
2383 2383
                              </el-row>
2384
+                             <el-row>
2385
+                              <el-col :span="24">
2386
+                                  <el-form-item class="formItem" label="功能及附件检查:">
2387
+                                     <el-input
2388
+                                        type="textarea"
2389
+                                        :rows="2"
2390
+                                         placeholder="请输入内容"
2391
+                                         v-model="guaForm.function_accessories_inspection"
2392
+                                        style="width:85%">
2393
+                                     </el-input>
2394
+                                  </el-form-item>
2395
+                                </el-col>
2396
+                             </el-row>
2397
+                             <el-row>
2398
+                              <el-col :span="24">
2399
+                                  <el-form-item class="formItem" label="其他:">
2400
+                                     <el-input
2401
+                                        type="textarea"
2402
+                                        :rows="2"
2403
+                                         placeholder="请输入内容"
2404
+                                         v-model="guaForm.other_information"
2405
+                                        style="width:85%">
2406
+                                     </el-input>
2407
+                                  </el-form-item>
2408
+                                </el-col>
2409
+                             </el-row>
2384 2410
                              <el-row>
2385 2411
                                <el-col :span="24">
2386 2412
                                   <el-form-item label="故障发生阶段">
@@ -2405,7 +2431,7 @@
2405 2431
                              </el-row>
2406 2432
                              <el-row>
2407 2433
                                 <el-col :span="8">
2408
-                                    <el-form-item label="故障描述:" required prop="fault_description">
2434
+                                    <el-form-item label="故障现象:" required prop="fault_description">
2409 2435
                                         <el-input
2410 2436
                                            type="textarea"
2411 2437
                                            :rows="2"
@@ -2416,7 +2442,7 @@
2416 2442
                                     </el-form-item>
2417 2443
                                 </el-col>
2418 2444
                                  <el-col :span="8">
2419
-                                    <el-form-item label="原因分析:">
2445
+                                    <el-form-item label="维修内容:">
2420 2446
                                         <el-input
2421 2447
                                            type="textarea"
2422 2448
                                            :rows="2"
@@ -2427,7 +2453,7 @@
2427 2453
                                     </el-form-item>
2428 2454
                                 </el-col>
2429 2455
                                  <el-col :span="8">
2430
-                                    <el-form-item label="处理过程:">
2456
+                                    <el-form-item label="维修结果:">
2431 2457
                                         <el-input
2432 2458
                                            type="textarea"
2433 2459
                                            :rows="2"
@@ -2469,7 +2495,7 @@
2469 2495
                              </el-row>
2470 2496
                              <el-row>
2471 2497
                                <el-col :span="20">
2472
-                                 <el-form-item label="原因:">
2498
+                                 <el-form-item label="备注:">
2473 2499
                                       <el-input
2474 2500
                                           type="textarea"
2475 2501
                                           :rows="2"
@@ -2480,6 +2506,21 @@
2480 2506
                                  </el-form-item>
2481 2507
                                </el-col>
2482 2508
                              </el-row>
2509
+                             <el-row>
2510
+                               <el-col :span="20">
2511
+                                 <el-form-item label="维修者:">
2512
+                                   <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
2513
+                                           <el-option
2514
+                                            v-for="item in autograph"
2515
+                                           :key="item.admin_user_id"
2516
+                                           :label="item.user_name"
2517
+                                           :value="item.admin_user_id"
2518
+                                            style="width:185px">
2519
+                                           </el-option>
2520
+                                    </el-select>
2521
+                                 </el-form-item>
2522
+                               </el-col>
2523
+                             </el-row>
2483 2524
                              <el-row>
2484 2525
                                 <div class="clearn">
2485 2526
                                   <el-col :span="4">
@@ -3209,7 +3250,9 @@ export default {
3209 3250
           exclude: '',
3210 3251
           reason: '',
3211 3252
           code_information: '',
3212
-          imageName: ''
3253
+          imageName: '',
3254
+          function_accessories_inspection:"",
3255
+          other_information:'',
3213 3256
         },
3214 3257
 
3215 3258
         filename: '',