Explorar el Código

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

28169 hace 2 años
padre
commit
64f5833c33

+ 3 - 3
src/xt_pages/device/objectTableDisinfectTwo.vue Ver fichero

@@ -785,11 +785,11 @@
785 785
                                     transform-origin: top left;"></span>
786 786
                                     <span style="position: absolute; left: 6px; bottom: 6px;font-size: 12px;">日期</span>
787 787
                                 </td>
788
-                                <td>湿化瓶<br/>500mg/l含氯<br/>制剂</td>
788
+                                <td>湿化瓶<br/>500mg/l含氯制剂</td>
789 789
                                 <td>负责人</td>
790
-                                <td>止血带<br/>500mg/l含氯<br/>制剂</td>
790
+                                <td>止血带<br/>500mg/l含氯制剂</td>
791 791
                                 <td>负责人</td>
792
-                                <td>医疗垃圾桶<br/>1000mg/l含氯<br/>制剂</td>
792
+                                <td>医疗垃圾桶<br/>1000mg/l含氯制剂</td>
793 793
                                 <td>负责人</td>
794 794
                                 <td>体温计<br/>75%酒精<br/>擦拭</td>
795 795
                                 <td>负责人</td>

+ 12 - 5
src/xt_pages/management/components/ManageForm.vue Ver fichero

@@ -311,7 +311,7 @@
311 311
         </el-row>
312 312
       </el-form>
313 313
       <span slot="footer" class="dialog-footer">
314
-        <el-button @click="dialogVisible = false">取 消</el-button>
314
+        <el-button @click="delManageInfo() ">取 消</el-button>
315 315
         <el-button
316 316
           type="primary"
317 317
           @click="SaveManageInfo('form')"
@@ -754,8 +754,10 @@ export default {
754 754
               this.getAllSubregion();
755 755
               this.$emit("getAllMachineInfo");
756 756
               this.$forceUpdate();
757
+              this.$refs['form'].resetFields()
757 758
             } else {
758 759
               this.$message.error("该机位号已绑定设备,添加失败");
760
+              this.$refs['form'].resetFields()
759 761
             }
760 762
           });
761 763
         }
@@ -818,6 +820,10 @@ export default {
818 820
         this.deviceMode = mode;
819 821
         console.log("mode", mode);
820 822
       });
823
+    },
824
+    delManageInfo(){
825
+      this.dialogVisible = false
826
+      this.$refs['form'].resetFields()
821 827
     }
822 828
   },
823 829
   created() {
@@ -827,16 +833,14 @@ export default {
827 833
 };
828 834
 </script>
829 835
 
830
-<style lang="scss">
836
+<style lang="scss" >
831 837
 .el-form-item__label {
832 838
   font-size: 14px;
833 839
 }
834 840
 // .el-form-item {
835 841
 //     margin-bottom: 10px;
836 842
 // }
837
-.el-form-item__error {
838
-  margin-left: 110px;
839
-}
843
+
840 844
 .el-checkbox {
841 845
   line-height: 26px;
842 846
   height: 26px;
@@ -846,6 +850,9 @@ export default {
846 850
     width: 100px;
847 851
     padding: 0;
848 852
   }
853
+  .el-form-item__error {
854
+    margin-left: 210px;
855
+  }
849 856
 }
850 857
 .el-checkbox {
851 858
   color: #606266;

+ 37 - 12
src/xt_pages/management/components/PlanForm.vue Ver fichero

@@ -9,7 +9,7 @@
9 9
       <el-form ref="form" :model="form">
10 10
         <el-row>
11 11
           <el-col :span="10">
12
-            <el-form-item label="设备型号:">
12
+            <el-form-item label="设备型号:" prop="device_type">
13 13
               <el-select style="width:135px" v-model="form.device_type">
14 14
                 <el-option
15 15
                   v-for="item in this.DeviceType"
@@ -21,7 +21,7 @@
21 21
             </el-form-item>
22 22
           </el-col>
23 23
           <el-col :span="10">
24
-            <el-form-item label="消毒时长:">
24
+            <el-form-item label="消毒时长:" prop="disinfec_time">
25 25
               <el-input
26 26
                 style="width:135px"
27 27
                 v-model="form.disinfec_time"
@@ -32,7 +32,7 @@
32 32
         </el-row>
33 33
         <el-row>
34 34
           <el-col :span="10">
35
-            <el-form-item label="时间:">
35
+            <el-form-item label="时间:" prop="time">
36 36
               <el-select
37 37
                 v-model="form.time"
38 38
                 multiple
@@ -41,6 +41,7 @@
41 41
                 default-first-option
42 42
                 placeholder="请选择时间"
43 43
                 style="width: 135px;"
44
+               
44 45
               >
45 46
                 <el-option
46 47
                   v-for="item in this.timeType"
@@ -52,7 +53,7 @@
52 53
             </el-form-item>
53 54
           </el-col>
54 55
           <el-col :span="10">
55
-            <el-form-item label="班次:">
56
+            <el-form-item label="班次:" prop="class_time">
56 57
               <el-select
57 58
                 v-model="form.class_time"
58 59
                 multiple
@@ -73,8 +74,8 @@
73 74
           </el-col>
74 75
         </el-row>
75 76
         <el-row>
76
-          <el-col :span="10">
77
-            <el-form-item label="机表(床单元、床旁桌)消毒方式:" label-width="200">
77
+          <el-col :span="20">
78
+            <el-form-item label="机表(床单元、床旁桌)消毒方式:" prop="way" >
78 79
               <el-select style="width:135px" v-model="form.way">
79 80
                 <el-option
80 81
                   v-for="item in this.disinfectType"
@@ -85,8 +86,25 @@
85 86
               </el-select>
86 87
             </el-form-item>
87 88
           </el-col>
88
-          <el-col :span="10">
89
-            <el-form-item label="机表(床单元、床旁桌)消毒液:" label-width="200">
89
+          <!-- <el-col :span="10">
90
+            <el-form-item label="机表(床单元、床旁桌)消毒液:" label-width="200" prop="machine_disinfectant">
91
+              <el-select
92
+                style="width:135px"
93
+                v-model="form.machine_disinfectant"
94
+              >
95
+                <el-option
96
+                  v-for="item in this.disinfectantType"
97
+                  :key="item.id"
98
+                  :label="item.name"
99
+                  :value="item.id"
100
+                ></el-option>
101
+              </el-select>
102
+            </el-form-item>
103
+          </el-col> -->
104
+        </el-row>
105
+        <el-row>
106
+          <el-col :span="20">
107
+            <el-form-item label="机表(床单元、床旁桌)消毒液:" label-width="200" prop="machine_disinfectant">
90 108
               <el-select
91 109
                 style="width:135px"
92 110
                 v-model="form.machine_disinfectant"
@@ -103,7 +121,7 @@
103 121
         </el-row>
104 122
         <el-row>
105 123
           <el-col :span="10">
106
-            <el-form-item label="液路消毒方式:">
124
+            <el-form-item label="液路消毒方式:" prop="disinfectant_way">
107 125
               <el-select style="width:135px" v-model="form.disinfectant_way">
108 126
                 <el-option
109 127
                   v-for="item in this.sterilizeType"
@@ -115,7 +133,7 @@
115 133
             </el-form-item>
116 134
           </el-col>
117 135
           <el-col :span="10">
118
-            <el-form-item label="液路消毒液:">
136
+            <el-form-item label="液路消毒液:" prop="disinfectant">
119 137
               <el-select style="width:135px" v-model="form.disinfectant">
120 138
                 <el-option
121 139
                   v-for="item in this.fluidPathType"
@@ -130,7 +148,7 @@
130 148
 
131 149
         <el-row>
132 150
           <el-col :span="10">
133
-            <el-form-item label="床单位更换:">
151
+            <el-form-item label="床单位更换:" prop="bed_way">
134 152
               <el-select style="width:135px" v-model="form.bed_way">
135 153
                 <el-option
136 154
                   v-for="item in this.bedType"
@@ -254,6 +272,7 @@ export default {
254 272
       });
255 273
     },
256 274
     savePlan(formName) {
275
+      
257 276
       var equimentid = this.equimentid;
258 277
       // console.log('equimentid', equimentid);
259 278
       var devicetype = this.form.device_type;
@@ -281,16 +300,20 @@ export default {
281 300
           var msg = response.data.data.msg;
282 301
           // console.log('msg', msg);
283 302
           this.$message.success("保存成功");
303
+          
284 304
           this.dialogVisible = false;
305
+          this.$refs['form'].resetFields()
285 306
           this.$emit("getAllPlan");
286 307
           this.$emit("getAllPlanDetail");
287 308
           // 如果保存成功通过状态值改变父组键表格的值
288 309
           this.plandata = 1;
289 310
           this.$emit("func", this.plandata);
311
+          
290 312
         } else {
291 313
           this.$message.error("该消毒计划已存在");
292 314
         }
293 315
       });
316
+      
294 317
     },
295 318
     getAllEquitType() {
296 319
       getAllEquitType().then(response => {
@@ -311,10 +334,12 @@ export default {
311 334
 <style lang="scss">
312 335
 #plan-form {
313 336
   .el-form-item__label {
314
-    width: 100px;
337
+    text-align: left;
338
+    // width: 100px;
315 339
   }
316 340
   .el-dialog__footer {
317 341
     text-align: right;
318 342
   }
343
+  // .el-form-item__label
319 344
 }
320 345
 </style>

+ 46 - 20
src/xt_pages/management/components/UserForm.vue Ver fichero

@@ -324,7 +324,7 @@
324 324
                 </template>
325 325
               </el-autocomplete>
326 326
             </el-form-item>
327
-         
327
+
328 328
           </el-col>
329 329
           <el-col :span="8">
330 330
             <el-form-item label="传染病:">
@@ -964,7 +964,7 @@
964 964
                 <td style="text-align:center;font-size:15px;height:30px">
965 965
                   {{item.clean}}
966 966
                 </td>
967
-              
967
+
968 968
                 <td style="text-align:center;font-size:15px;height:30px">
969 969
                   {{ item.user_name }}
970 970
                 </td>
@@ -1207,7 +1207,7 @@ export default {
1207 1207
             zone.push({ id: item.id, name: item.name });
1208 1208
           }
1209 1209
           this.zones = zone;
1210
-       
1210
+
1211 1211
           var numbers = response.data.data.numbers;
1212 1212
           var number = [{ id: 0, number: "全部" }];
1213 1213
           for (let index = 0; index < numbers.length; index++) {
@@ -1290,7 +1290,7 @@ export default {
1290 1290
             if (information[index].dialysis_mode === 19) {
1291 1291
               information[index].dialysis_mode = "IUF+HD";
1292 1292
             }
1293
-            
1293
+
1294 1294
             if (information[index].dialysis_mode === 20) {
1295 1295
               information[index].dialysis_mode = "UF";
1296 1296
             }
@@ -1564,7 +1564,7 @@ export default {
1564 1564
           var macher =  response.data.data.macher
1565 1565
            if(macher.user_total == ''){
1566 1566
              macher.user_total = 0
1567
-           }   
1567
+           }
1568 1568
           var totals = count[0].Total + parseInt(macher.user_total)
1569 1569
           this.userform.id = device.id;
1570 1570
           this.userform.spling_date = uParseTime(
@@ -1586,7 +1586,7 @@ export default {
1586 1586
           this.userform.hyperfiltratio = device.hyperfiltratio;
1587 1587
           this.userform.weight_loss = device.weight_loss;
1588 1588
           this.userform.warning_value = device.warning_value;
1589
-       
1589
+
1590 1590
           this.userform.run = device.move;
1591 1591
 
1592 1592
           this.userform.failure_stage = device.failure_stage;
@@ -1602,7 +1602,7 @@ export default {
1602 1602
           this.userform.disinfection_residue = device.disinfection_residue;
1603 1603
           this.userform.longtime = device.long_time;
1604 1604
           this.userform.dialysis_time = device.dialysis_hour;
1605
-        
1605
+
1606 1606
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1607 1607
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1608 1608
           this.userform.equiment_id = device.equiment_id;
@@ -1643,7 +1643,7 @@ export default {
1643 1643
           if (device.disinfection === 0) {
1644 1644
             this.userform.disinfection = "";
1645 1645
           }
1646
-          this.userform.user_total = totals.toString() 
1646
+          this.userform.user_total = totals.toString()
1647 1647
         }
1648 1648
       });
1649 1649
     },
@@ -1759,7 +1759,7 @@ export default {
1759 1759
       this.$refs[formName].validate(valid => {
1760 1760
         if (valid) {
1761 1761
           console.log("hhhh23233323",this.userform)
1762
-       
1762
+
1763 1763
           UpdateForm(this.userform).then(response => {
1764 1764
             if (response.data.state === 1) {
1765 1765
               var information = response.data.data.information;
@@ -1884,7 +1884,7 @@ export default {
1884 1884
             if (information[index].dialysis_mode === 25) {
1885 1885
               information[index].dialysis_mode = "HD高通";
1886 1886
             }
1887
-            
1887
+
1888 1888
             if (information[index].dialysis_mode === 26) {
1889 1889
               information[index].dialysis_mode = "CVVH";
1890 1890
             }
@@ -1901,8 +1901,8 @@ export default {
1901 1901
               information[index].dialysis_mode = "PE";
1902 1902
             }
1903 1903
 
1904
-           
1905
- 
1904
+
1905
+
1906 1906
             if (information[index].move === 0) {
1907 1907
               information[index].move = "";
1908 1908
             }
@@ -2122,7 +2122,7 @@ export default {
2122 2122
     getUserForm(id) {
2123 2123
       getUserForm(id, this.limit, this.page).then(response => {
2124 2124
         if (response.data.state === 1) {
2125
-          var information = response.data.data.information; 
2125
+          var information = response.data.data.information;
2126 2126
           console.log("information",information)
2127 2127
           var addmacher = response.data.data.addmacher;
2128 2128
           console.log("addmacher",addmacher)
@@ -2225,7 +2225,7 @@ export default {
2225 2225
             if (information[index].dialysis_mode === 25) {
2226 2226
               information[index].dialysis_mode = "HD高通";
2227 2227
             }
2228
-            
2228
+
2229 2229
            if (information[index].dialysis_mode === 26) {
2230 2230
               information[index].dialysis_mode = "CVVH";
2231 2231
             }
@@ -2532,20 +2532,20 @@ export default {
2532 2532
         });
2533 2533
       });
2534 2534
 
2535
-      
2535
+
2536 2536
     },
2537
-   
2537
+
2538 2538
     exportlist: function() {
2539 2539
         for(let i=0;i<this.tableData.length;i++){
2540 2540
             this.tableData[i].index = i+1
2541 2541
 
2542
-           
2542
+
2543 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) 
2544
+           this.tableData[i].disinfec_startime_str = this.getTimesTwo(this.tableData[i].disinfec_startime)
2545 2545
            this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2546 2546
           }
2547 2547
           import('@/vendor/Export2Excel').then(excel => {
2548
-          
2548
+
2549 2549
             const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2550 2550
             const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
2551 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']
@@ -2555,7 +2555,7 @@ export default {
2555 2555
             const filename = '透析机使用登记'
2556 2556
 
2557 2557
             console.log("rwwwwwwwwwww",this.tableData)
2558
-            
2558
+
2559 2559
             excel.export_json_to_excel({
2560 2560
               multiHeader,
2561 2561
               header,
@@ -2568,6 +2568,32 @@ export default {
2568 2568
       formatJson(filterVal, jsonData) {
2569 2569
         return jsonData.map(v => filterVal.map(j => v[j]));
2570 2570
       },
2571
+    },
2572
+    exportList: function() {
2573
+      console.log('123245354');
2574
+      // for(let i=0;i<this.tableList.length;i++){
2575
+      //     this.tableList[i].index = i+1
2576
+      //   }
2577
+      //   import('@/vendor/Export2Excel').then(excel => {
2578
+      //     const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
2579
+      //     const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
2580
+      //     const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
2581
+      //     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']
2582
+
2583
+      //     const data = this.formatJson(filterVal, this.tableList)
2584
+
2585
+      //     const filename = '药品进销存查询'
2586
+
2587
+
2588
+      //       excel.export_json_to_excel({
2589
+      //         multiHeader,
2590
+      //         header,
2591
+      //         merges,
2592
+      //         data,
2593
+      //         filename
2594
+      //       })
2595
+      //   })
2596
+    },
2571 2597
   },
2572 2598
   created() {
2573 2599
     this.getAllSubregion();

+ 25 - 15
src/xt_pages/management/components/WaterForm.vue Ver fichero

@@ -36,18 +36,19 @@
36 36
          </el-row>
37 37
          <el-row>
38 38
             <el-col :span="8">
39
-                <el-form-item label="原水电导度(μs/cm):"  class="st" label-width="100px">
40
-                    <el-input  v-model="form.water_conductivity" style="width:100px" type="number"></el-input>
39
+                <el-form-item label="原水电导度(μs/cm):"   class="st" label-width="100px">
40
+                    <el-input  v-model="form.water_conductivity" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
41
+                    <!-- <el-input-number v-model="form.water_conductivity" :controls="false" :precision="2" ></el-input-number> -->
41 42
                 </el-form-item>
42 43
             </el-col>
43 44
             <el-col :span="8">
44 45
                 <el-form-item label="原水压力(Mpa):"  class="st">
45
-                    <el-input  v-model="form.water_pressure" style="width:100px" type="number"></el-input>
46
+                    <el-input  v-model="form.water_pressure" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
46 47
                 </el-form-item>
47 48
             </el-col>
48 49
             <el-col :span="8">
49 50
                 <el-form-item label="温度:"  class="st">
50
-                    <el-input  v-model="form.temperature" style="width:100px" type="number"></el-input>
51
+                    <el-input  v-model="form.temperature" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
51 52
                 </el-form-item>
52 53
             </el-col>
53 54
          </el-row>
@@ -157,17 +158,20 @@
157 158
          <el-row>
158 159
             <el-col :span="8">
159 160
                 <el-form-item label="硬度监测(mg/l):"  class="st">
160
-                    <el-input  v-model="form.hardness_monitoring" type="number" style="width:100px"></el-input>
161
+                    <el-input  v-model="form.hardness_monitoring" style="width:100px"
162
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
161 163
                 </el-form-item>
162 164
             </el-col>
163 165
             <el-col :span="8">
164 166
                 <el-form-item label="总氯检测(mg/l):"  class="st">
165
-                    <el-input  v-model="form.total_chlorine_detection" type="number" style="width:100px"></el-input>
167
+                    <el-input  v-model="form.total_chlorine_detection" style="width:100px"
168
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
166 169
                 </el-form-item>
167 170
             </el-col>
168 171
             <el-col :span="8">
169 172
                 <el-form-item label="PH值检测:"  class="st">
170
-                    <el-input  v-model="form.ph_detection" type="number" style="width:100px"></el-input>
173
+                    <el-input  v-model="form.ph_detection" style="width:100px"
174
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
171 175
                 </el-form-item>
172 176
             </el-col>
173 177
          </el-row>
@@ -175,7 +179,8 @@
175 179
          <el-row>
176 180
             <el-col :span="8">
177 181
                 <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
178
-                    <el-input  v-model="form.concentration_of_peroxyacetic_acid" type="number" style="width:100px"></el-input>
182
+                    <el-input  v-model="form.concentration_of_peroxyacetic_acid" style="width:100px"
183
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
179 184
                 </el-form-item>
180 185
             </el-col>
181 186
          </el-row>
@@ -230,21 +235,21 @@
230 235
           
231 236
             <el-col :span="8">
232 237
                 <el-form-item label="过滤器更换(只):"  class="st">
233
-                    <el-input  v-model="form.filter_replacement" type="number" style="width:100px"></el-input>
238
+                    <el-input  v-model="form.filter_replacement" style="width:100px" 
239
+                    oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
234 240
                 </el-form-item>
235 241
             </el-col>
236 242
 
237
-            <el-col :span="8">
238
-                <el-form-item label="备注:"  class="st">
239
-                    <el-input  v-model="form.remark" style="width:100px"></el-input>
243
+            <el-col :span="12">
244
+                <el-form-item label="备注:"  class="st" >
245
+                    <el-input type="textarea"  v-model="form.remark" autosize style="width:200px"></el-input>
240 246
                 </el-form-item>
241 247
             </el-col>
242 248
          </el-row>
243 249
 
244 250
          <el-row>
245
-          
246 251
           <el-col :span="8">
247
-              <el-form-item label="记录人:"  class="st">
252
+              <el-form-item label="记录人:" prop="admin_user_id"  class="st">
248 253
                 <el-select style="width:135px" v-model="form.admin_user_id">
249 254
                     <el-option
250 255
                     v-for="item in this.nurseList"
@@ -452,4 +457,9 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
452 457
        this.getAllDoctorList()
453 458
     }
454 459
  }
455
-</script>
460
+</script>
461
+<style >
462
+.newMain .el-form-item__label {
463
+    width: 110px !important;
464
+}
465
+</style>

+ 42 - 43
src/xt_pages/management/components/WaterFormList.vue Ver fichero

@@ -23,7 +23,7 @@
23 23
             style="width:130px"
24 24
           ></el-date-picker>
25 25
         </el-col>
26
-   
26
+
27 27
       </el-row>
28 28
       <el-row :span="24" style="display: flex;align-items: center;">
29 29
         <el-col :span="2">
@@ -43,7 +43,7 @@
43 43
         </el-col>
44 44
       </el-row>
45 45
       <el-row>
46
-     
46
+
47 47
         <el-table
48 48
           ref="multipleTable"
49 49
           @selection-change="handleSelectionChange"
@@ -185,7 +185,7 @@
185 185
             </el-table-column>
186 186
           </el-table-column>
187 187
 
188
-        
188
+
189 189
             <el-table-column label="过滤器更换" align="center" min-width="110px">
190 190
               <template slot-scope="scope">
191 191
                  {{scope.row.filter_replacement}}
@@ -196,7 +196,7 @@
196 196
                  {{ getDocName(scope.row.admin_user_id) }}
197 197
               </template>
198 198
             </el-table-column>
199
-   
199
+
200 200
           <el-table-column label="操作" align="center" fixed="right" min-width="150px">
201 201
             <template slot-scope="scope">
202 202
               <el-tooltip
@@ -214,7 +214,7 @@
214 214
                   "
215 215
                 ></el-button>
216 216
               </el-tooltip>
217
-  
217
+
218 218
               <el-tooltip
219 219
                 class="item"
220 220
                 effect="dark"
@@ -340,7 +340,7 @@
340 340
                     <el-input  v-model="form.first_water_yield" style="width:100px" type="number"></el-input>
341 341
                 </el-form-item>
342 342
             </el-col>
343
-         
343
+
344 344
          </el-row>
345 345
          <el-row>
346 346
             <span>反渗二级</span>
@@ -477,7 +477,7 @@
477 477
          </el-row>
478 478
 
479 479
          <el-row>
480
-          
480
+
481 481
             <el-col :span="8">
482 482
                 <el-form-item label="过滤器更换(只):"  class="st">
483 483
                     <el-input  v-model="form.filter_replacement" style="width:100px" type="number"></el-input>
@@ -492,7 +492,7 @@
492 492
          </el-row>
493 493
 
494 494
          <el-row>
495
-          
495
+
496 496
           <el-col :span="8">
497 497
               <el-form-item label="记录人:"  class="st">
498 498
                 <el-select style="width:135px" v-model="form.admin_user_id">
@@ -506,9 +506,9 @@
506 506
               </el-form-item>
507 507
           </el-col>
508 508
 
509
-        
509
+
510 510
         </el-row>
511
-       
511
+
512 512
         </el-form>
513 513
 
514 514
           </span>
@@ -517,7 +517,7 @@
517 517
             <el-button type="primary" @click="UpdateDilaysisWater('form')">确 定</el-button>
518 518
           </span>
519 519
         </el-dialog>
520
-        
520
+
521 521
 
522 522
       <div hidden="hidden">
523 523
       <div id="print-card-info" v-show="hiddenShow">
@@ -541,8 +541,8 @@
541 541
                 >
542 542
                   日期
543 543
                 </td>
544
-              
545
-               
544
+
545
+
546 546
                 <td
547 547
                   :colspan="4"
548 548
                   style="text-align:center;width:60px;font-size:15px"
@@ -590,7 +590,7 @@
590 590
                 >
591 591
                   静谧过滤器(MPa)
592 592
                 </td>
593
-              
593
+
594 594
                 <td
595 595
                  :colspan="4"
596 596
                   style="text-align:center;width:60px;font-size:15px"
@@ -618,7 +618,7 @@
618 618
                 >
619 619
                 记录人
620 620
                 </td>
621
-               
621
+
622 622
               </tr>
623 623
               <tr>
624 624
                 <td style="text-align:center;width:70px;font-size:15px">
@@ -648,7 +648,7 @@
648 648
                   产水量
649 649
                 </td>
650 650
 
651
-             
651
+
652 652
 
653 653
                 <td style="text-align:center;width:70px;font-size:15px">
654 654
                    硬度(mg/l)
@@ -670,15 +670,15 @@
670 670
                 <td style="text-align:center;width:95px;font-size:15px">
671 671
                   输水管道消毒
672 672
                 </td>
673
-                
674
-               
675
-              
673
+
674
+
675
+
676 676
               </tr>
677 677
               <tr v-for="item in this.tableData" :key="item.id">
678 678
                 <td style="text-align:center;font-size:15px;height:30px">
679 679
                   {{getTime(item.record_date) }}
680 680
                 </td>
681
-               
681
+
682 682
                 <td style="text-align:center;font-size:15px;height:30px">
683 683
                   {{ item.water_conductivity }}
684 684
                 </td>
@@ -772,14 +772,14 @@
772 772
                 >
773 773
                 {{item.filter_replacement}}
774 774
                 </td>
775
-                
775
+
776 776
                 <td style="text-align:center;width:70px;font-size:15px">
777 777
                   {{ getDocName(item.admin_user_id) }}
778 778
                 </td>
779
-             
780
-               
781
-               
782
-             
779
+
780
+
781
+
782
+
783 783
               </tr>
784 784
             </table>
785 785
           </div>
@@ -790,7 +790,7 @@
790 790
       </div>
791 791
     </div>
792 792
 
793
-   
793
+
794 794
   </template>
795 795
   <script>
796 796
   import { uParseTime } from "@/utils/tools";
@@ -831,7 +831,7 @@
831 831
               last_ro_membrane_effluent:"",
832 832
               last_production_of_water_conductivity:"",//产水电导度
833 833
               last_water_yield:"",//产水量
834
-             
834
+
835 835
               carbon_tank:"",//碳罐
836 836
               snd_tank:"",//砂罐,
837 837
               resin_tank:"",//树脂罐
@@ -849,12 +849,12 @@
849 849
               remark:"",//备注
850 850
               filter_replacement:"",//过滤器更换
851 851
               admin_user_id:"",//记录人
852
-              
852
+
853 853
             },
854 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 859
             forcePumpList:[
860 860
               {id:0,name:"全部"},
@@ -864,7 +864,7 @@
864 864
             disinfectionType:[
865 865
             { id: 0, name: "请选择" },
866 866
             { id: 1, name: "热消毒" },
867
-            { id: 2, name: "化学消毒" }   
867
+            { id: 2, name: "化学消毒" }
868 868
             ],
869 869
             checked:"",
870 870
             rules: {
@@ -893,7 +893,7 @@
893 893
                this.total = total
894 894
                this.adminRole = response.data.data.adminRole
895 895
 
896
-               
896
+
897 897
              }
898 898
           })
899 899
          },
@@ -994,7 +994,7 @@
994 994
         ).then(() => {
995 995
           DeleteWater(id,index).then(response => {
996 996
               if (response.data.state == 1) {
997
-               
997
+
998 998
                 this.$message.success('删除成功')
999 999
                 this.tableData.splice(index,1)
1000 1000
               } else {
@@ -1011,7 +1011,7 @@
1011 1011
         getDialysisWaterDetail(id).then(response=>{
1012 1012
           if(response.data.state == 1){
1013 1013
             var detail =  response.data.data.detail
1014
-            
1014
+
1015 1015
             this.form.id = detail.id
1016 1016
             this.form.record_date = this.getTime(detail.record_date)
1017 1017
             this.form.machine_status = detail.machine_status.toString()
@@ -1043,7 +1043,7 @@
1043 1043
             }else{
1044 1044
               this.form.reverse_osmosis_membrane_disinfection  =false
1045 1045
             }
1046
-              
1046
+
1047 1047
             if(detail.disinfection_of_water_pipeline == 1){
1048 1048
                 this.form.disinfection_of_water_pipeline = true
1049 1049
             }else{
@@ -1122,9 +1122,9 @@
1122 1122
                 var deviceWater =  response.data.data.deviceWater
1123 1123
                 console.log("保存成功!",deviceWater)
1124 1124
                 this.$message.success("保存成功!")
1125
-                this.dialogVisible = false 
1125
+                this.dialogVisible = false
1126 1126
                 this.getlist()
1127
-            
1127
+
1128 1128
              }
1129 1129
            })
1130 1130
 
@@ -1144,7 +1144,7 @@
1144 1144
               this.tableData[i].user_name = this.getDocName(this.tableData[i].admin_user_id)
1145 1145
             }
1146 1146
             import('@/vendor/Export2Excel').then(excel => {
1147
-            
1147
+
1148 1148
               const multiHeader = [['序号', '日期', '原水参数' , '', '','', '一级反渗', '', '二级反渗' , '', '碳罐(MPa)','砂罐(MPa)', '树脂罐(MPa)','静谧过滤器(MPa)','水质监测','','','','消毒','','过滤器更换','记录人' ]]
1149 1149
               const header = ['', '', '原水电导度', '原水压力', '温度','加压泵', '产水电导度', '产水量', '产水电导度', '产水量', '','','','','硬度(mg/l)','总氯(mg/l)','PH值','过氧乙酸(mg/l)','反渗膜消毒','输水管道消毒','','',]
1150 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']
@@ -1152,9 +1152,9 @@
1152 1152
               const data = this.formatJson(filterVal, this.tableData)
1153 1153
 
1154 1154
               const filename = '水处理机使用登记'
1155
- 
1155
+
1156 1156
               console.log("rwwwwwwwwwww",this.tableData)
1157
-              
1157
+
1158 1158
               excel.export_json_to_excel({
1159 1159
                 multiHeader,
1160 1160
                 header,
@@ -1219,6 +1219,5 @@
1219 1219
     }
1220 1220
   }
1221 1221
   </style>
1222
-  
1223 1222
 
1224
-  
1223
+

+ 1 - 2
src/xt_pages/management/home.vue Ver fichero

@@ -937,8 +937,6 @@
937 937
                        </div>
938 938
                    </el-tab-pane>
939 939
 
940
-
941
-
942 940
                    <el-tab-pane label="使用登记" name="third">
943 941
                        <div class="userbutton">
944 942
                           <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
@@ -2318,6 +2316,7 @@
2318 2316
                           暂无数据
2319 2317
                         </div>
2320 2318
                    </el-tab-pane>
2319
+                   
2321 2320
                     <el-tab-pane label="维修维护" name="five">
2322 2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2323 2322
                          <el-tab-pane label="新增维修维护" name="first">

+ 12 - 39
src/xt_pages/outpatientCharges/components/registerDialog.vue Ver fichero

@@ -77,38 +77,6 @@
77 77
         <el-input v-model="form.id_card"></el-input>
78 78
       </el-form-item>
79 79
 
80
-      <!--<el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">-->
81
-      <!--<el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""-->
82
-      <!--&gt;-->
83
-      <!--<el-option-->
84
-      <!--v-for="(item,index) in registers"-->
85
-      <!--:key="index"-->
86
-      <!--:label="item.label"-->
87
-      <!--:value="item.value">-->
88
-      <!--</el-option>-->
89
-      <!--</el-select>-->
90
-      <!--</el-form-item>-->
91
-      <!--<el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">-->
92
-      <!--<el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">-->
93
-      <!--<el-option-->
94
-      <!--v-for="(item,index) in sick"-->
95
-      <!--:key="index"-->
96
-      <!--:label="item.class_name"-->
97
-      <!--:value="item.id">-->
98
-      <!--</el-option>-->
99
-      <!--</el-select>-->
100
-      <!--</el-form-item>-->
101
-
102
-      <!--<el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">-->
103
-      <!--<el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">-->
104
-      <!--<el-option-->
105
-      <!--v-for="(item,index) in diagnoses"-->
106
-      <!--:key="index"-->
107
-      <!--:label="item.class_name"-->
108
-      <!--:value="item.id">-->
109
-      <!--</el-option>-->
110
-      <!--</el-select>-->
111
-      <!--</el-form-item>-->
112 80
 
113 81
       <el-form-item label="参保地:">
114 82
         <el-select v-model="form.insuplc_admdvs" placeholder="请选择" style="width:100%;">
@@ -167,7 +135,7 @@
167 135
         </div>
168 136
       </el-form-item>
169 137
 
170
-      <el-form-item label="挂号类型:" :validate-event="is_Name">
138
+      <el-form-item label="挂号类型:" :validate-event="is_Name" >
171 139
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
172 140
           <el-option
173 141
             v-for="item in register"
@@ -294,7 +262,8 @@
294 262
           cost: '',
295 263
           phone: '',
296 264
           social_type: ''
297
-        }, IDCardTypes: [{
265
+        }, 
266
+        IDCardTypes: [{
298 267
           value: 1,
299 268
           label: '社保卡'
300 269
         }, {
@@ -317,7 +286,8 @@
317 286
           { value: 7, label: '合同' },
318 287
           {value: 8, label: '医保自费'},
319 288
 
320
-        ],InsuplcAdmdvs:[
289
+        ],
290
+        InsuplcAdmdvs:[
321 291
         ],
322 292
         sex: [{
323 293
           value: 1,
@@ -383,7 +353,7 @@
383 353
         }],
384 354
         rules: {
385 355
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
386
-          gender: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
356
+          gender: [{ required: true, message: '患者性别不能为空', trigger: 'change' }],
387 357
           id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
388 358
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
389 359
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
@@ -451,8 +421,6 @@
451 421
     methods: {
452 422
       check11(){
453 423
 
454
-
455
-
456 424
         if(this.form.social_type == 0 || this.form.social_type == ''){
457 425
           this.$message.error("社保类型不能为空")
458 426
           return
@@ -771,8 +739,10 @@
771 739
       hide: function () {
772 740
         this.visibility = false
773 741
         this.$refs['formValue'].resetFields()
774
-      }, cancel: function(formName) {
742
+      },
743
+       cancel: function(formName) {
775 744
         this.$emit('cancel', this.getValue())
745
+        this.visibility=false
776 746
         this.$refs['formValue'].resetFields()
777 747
       },
778 748
       confirm: function(formName) {
@@ -781,6 +751,9 @@
781 751
             let value = {}
782 752
             value = this.getValue()
783 753
             this.$emit('confirm', value)
754
+            this.visibility=false
755
+            this.$refs['formValue'].resetFields()
756
+            this.$parent.loadingone=false
784 757
           }
785 758
         })
786 759
       },

+ 2 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver fichero

@@ -3206,9 +3206,6 @@ export default {
3206 3206
     },
3207 3207
     open(index, med_type, order, prescriptions) {
3208 3208
 
3209
-
3210
-
3211
-
3212 3209
       this.other_prescriptions = prescriptions
3213 3210
 
3214 3211
       if (index == 1) {
@@ -3651,7 +3648,8 @@ export default {
3651 3648
             .catch(function(error) {
3652 3649
             })
3653 3650
       }
3654
-    }, getName(admin_user_id) {
3651
+    },
3652
+     getName(admin_user_id) {
3655 3653
       for (let i = 0; i < this.adminUserOptions.length; i++) {
3656 3654
         if (this.adminUserOptions[i].id == admin_user_id) {
3657 3655
           return this.adminUserOptions[i].name