瀏覽代碼

4月12日bug修改

杨青 2 年之前
父節點
當前提交
940423e692

+ 3 - 3
src/xt_pages/device/objectTableDisinfectTwo.vue 查看文件

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

+ 12 - 5
src/xt_pages/management/components/ManageForm.vue 查看文件

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

+ 37 - 12
src/xt_pages/management/components/PlanForm.vue 查看文件

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

+ 27 - 1
src/xt_pages/management/components/UserForm.vue 查看文件

62
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
62
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
63
       </el-col>
63
       </el-col>
64
       <el-col :span="6">
64
       <el-col :span="6">
65
+        <el-button type="primary" @click="exportlist">导出</el-button>
65
         <el-button type="primary" @click="printCard">打印</el-button>
66
         <el-button type="primary" @click="printCard">打印</el-button>
66
       </el-col>
67
       </el-col>
67
     </el-row>
68
     </el-row>
2493
           }
2494
           }
2494
         });
2495
         });
2495
       });
2496
       });
2496
-    }
2497
+    },
2498
+    exportList: function() {
2499
+      console.log('123245354');
2500
+      // for(let i=0;i<this.tableList.length;i++){
2501
+      //     this.tableList[i].index = i+1
2502
+      //   }
2503
+      //   import('@/vendor/Export2Excel').then(excel => {
2504
+      //     const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
2505
+      //     const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
2506
+      //     const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
2507
+      //     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']
2508
+
2509
+      //     const data = this.formatJson(filterVal, this.tableList)
2510
+
2511
+      //     const filename = '药品进销存查询'
2512
+
2513
+
2514
+      //       excel.export_json_to_excel({
2515
+      //         multiHeader,
2516
+      //         header,
2517
+      //         merges,
2518
+      //         data,
2519
+      //         filename
2520
+      //       })
2521
+      //   })
2522
+    },
2497
   },
2523
   },
2498
   created() {
2524
   created() {
2499
     this.getAllSubregion();
2525
     this.getAllSubregion();

+ 25 - 15
src/xt_pages/management/components/WaterForm.vue 查看文件

36
          </el-row>
36
          </el-row>
37
          <el-row>
37
          <el-row>
38
             <el-col :span="8">
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
                 </el-form-item>
42
                 </el-form-item>
42
             </el-col>
43
             </el-col>
43
             <el-col :span="8">
44
             <el-col :span="8">
44
                 <el-form-item label="原水压力(Mpa):"  class="st">
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
                 </el-form-item>
47
                 </el-form-item>
47
             </el-col>
48
             </el-col>
48
             <el-col :span="8">
49
             <el-col :span="8">
49
                 <el-form-item label="温度:"  class="st">
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
                 </el-form-item>
52
                 </el-form-item>
52
             </el-col>
53
             </el-col>
53
          </el-row>
54
          </el-row>
157
          <el-row>
158
          <el-row>
158
             <el-col :span="8">
159
             <el-col :span="8">
159
                 <el-form-item label="硬度监测(mg/l):"  class="st">
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
                 </el-form-item>
163
                 </el-form-item>
162
             </el-col>
164
             </el-col>
163
             <el-col :span="8">
165
             <el-col :span="8">
164
                 <el-form-item label="总氯检测(mg/l):"  class="st">
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
                 </el-form-item>
169
                 </el-form-item>
167
             </el-col>
170
             </el-col>
168
             <el-col :span="8">
171
             <el-col :span="8">
169
                 <el-form-item label="PH值检测:"  class="st">
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
                 </el-form-item>
175
                 </el-form-item>
172
             </el-col>
176
             </el-col>
173
          </el-row>
177
          </el-row>
175
          <el-row>
179
          <el-row>
176
             <el-col :span="8">
180
             <el-col :span="8">
177
                 <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
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
                 </el-form-item>
184
                 </el-form-item>
180
             </el-col>
185
             </el-col>
181
          </el-row>
186
          </el-row>
230
           
235
           
231
             <el-col :span="8">
236
             <el-col :span="8">
232
                 <el-form-item label="过滤器更换(只):"  class="st">
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
                 </el-form-item>
240
                 </el-form-item>
235
             </el-col>
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
                 </el-form-item>
246
                 </el-form-item>
241
             </el-col>
247
             </el-col>
242
          </el-row>
248
          </el-row>
243
 
249
 
244
          <el-row>
250
          <el-row>
245
-          
246
           <el-col :span="8">
251
           <el-col :span="8">
247
-              <el-form-item label="记录人:"  class="st">
252
+              <el-form-item label="记录人:" prop="admin_user_id"  class="st">
248
                 <el-select style="width:135px" v-model="form.admin_user_id">
253
                 <el-select style="width:135px" v-model="form.admin_user_id">
249
                     <el-option
254
                     <el-option
250
                     v-for="item in this.nurseList"
255
                     v-for="item in this.nurseList"
452
        this.getAllDoctorList()
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>

+ 0 - 2
src/xt_pages/management/components/WaterFormList.vue 查看文件

1134
         exportList: function() {
1134
         exportList: function() {
1135
           for(let i=0;i<this.tableList.length;i++){
1135
           for(let i=0;i<this.tableList.length;i++){
1136
               this.tableList[i].index = i+1
1136
               this.tableList[i].index = i+1
1137
-             
1138
-
1139
             }
1137
             }
1140
             import('@/vendor/Export2Excel').then(excel => {
1138
             import('@/vendor/Export2Excel').then(excel => {
1141
               const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
1139
               const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]

+ 7 - 8
src/xt_pages/management/home.vue 查看文件

937
                        </div>
937
                        </div>
938
                    </el-tab-pane>
938
                    </el-tab-pane>
939
 
939
 
940
-
941
-
942
                    <el-tab-pane label="使用登记" name="third">
940
                    <el-tab-pane label="使用登记" name="third">
943
                        <div class="userbutton">
941
                        <div class="userbutton">
944
                           <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
942
                           <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
1365
                                 </el-row>
1363
                                 </el-row>
1366
                              </el-form>
1364
                              </el-form>
1367
 
1365
 
1368
-                            <!-- <water-form ref="waterForm" v-if="device_type == 2" :equimentid="equimentid"></water-form> -->
1366
+                            <water-form ref="waterForm" v-if="device_type == 2" :equimentid="equimentid"></water-form>
1369
 
1367
 
1370
                           </el-tab-pane>
1368
                           </el-tab-pane>
1371
 
1369
 
1372
                            <el-tab-pane label="使用登记列表" name="second" >
1370
                            <el-tab-pane label="使用登记列表" name="second" >
1373
                              <user-form ref="userForm" :userdata="userdata" v-if="device_type == 1"></user-form>
1371
                              <user-form ref="userForm" :userdata="userdata" v-if="device_type == 1"></user-form>
1374
-                             <!-- <water-form-list ref="waterFormList" v-if="device_type == 2" :equimentid="equimentid"></water-form-list> -->
1372
+                             <water-form-list ref="waterFormList" v-if="device_type == 2" :equimentid="equimentid"></water-form-list>
1375
                            </el-tab-pane>
1373
                            </el-tab-pane>
1376
                        </el-tabs>
1374
                        </el-tabs>
1377
                      </div>
1375
                      </div>
2318
                           暂无数据
2316
                           暂无数据
2319
                         </div>
2317
                         </div>
2320
                    </el-tab-pane>
2318
                    </el-tab-pane>
2319
+                   
2321
                     <el-tab-pane label="维修维护" name="five">
2320
                     <el-tab-pane label="维修维护" name="five">
2322
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2323
                          <el-tab-pane label="新增维修维护" name="first">
2322
                          <el-tab-pane label="新增维修维护" name="first">
2670
   import QualityForm from './components/QualityForm'
2669
   import QualityForm from './components/QualityForm'
2671
   import RepairForm from './components/RepairForm'
2670
   import RepairForm from './components/RepairForm'
2672
   import RemanderForm from './components/RemanderForm'
2671
   import RemanderForm from './components/RemanderForm'
2673
-  // import WaterForm from './components/WaterForm'
2674
-  // import WaterFormList from './components/WaterFormList.vue'
2672
+  import WaterForm from './components/WaterForm'
2673
+  import WaterFormList from './components/WaterFormList.vue'
2675
   import { parseTime } from '@/utils'
2674
   import { parseTime } from '@/utils'
2676
   import { getFileExtension } from '@/utils/tools'
2675
   import { getFileExtension } from '@/utils/tools'
2677
   import { PostSearch } from '@/api/patient'
2676
   import { PostSearch } from '@/api/patient'
2689
       QualityForm,
2688
       QualityForm,
2690
       RepairForm,
2689
       RepairForm,
2691
       RemanderForm,
2690
       RemanderForm,
2692
-      // WaterForm,
2693
-      // WaterFormList
2691
+      WaterForm,
2692
+      WaterFormList
2694
     },
2693
     },
2695
     data() {
2694
     data() {
2696
       return {
2695
       return {

+ 12 - 39
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

77
         <el-input v-model="form.id_card"></el-input>
77
         <el-input v-model="form.id_card"></el-input>
78
       </el-form-item>
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
       <el-form-item label="参保地:">
81
       <el-form-item label="参保地:">
114
         <el-select v-model="form.insuplc_admdvs" placeholder="请选择" style="width:100%;">
82
         <el-select v-model="form.insuplc_admdvs" placeholder="请选择" style="width:100%;">
167
         </div>
135
         </div>
168
       </el-form-item>
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
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
139
         <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
172
           <el-option
140
           <el-option
173
             v-for="item in register"
141
             v-for="item in register"
294
           cost: '',
262
           cost: '',
295
           phone: '',
263
           phone: '',
296
           social_type: ''
264
           social_type: ''
297
-        }, IDCardTypes: [{
265
+        }, 
266
+        IDCardTypes: [{
298
           value: 1,
267
           value: 1,
299
           label: '社保卡'
268
           label: '社保卡'
300
         }, {
269
         }, {
317
           { value: 7, label: '合同' },
286
           { value: 7, label: '合同' },
318
           {value: 8, label: '医保自费'},
287
           {value: 8, label: '医保自费'},
319
 
288
 
320
-        ],InsuplcAdmdvs:[
289
+        ],
290
+        InsuplcAdmdvs:[
321
         ],
291
         ],
322
         sex: [{
292
         sex: [{
323
           value: 1,
293
           value: 1,
383
         }],
353
         }],
384
         rules: {
354
         rules: {
385
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
355
           name: [{ required: true, message: '患者姓名不能为空', trigger: 'blur' }],
386
-          gender: [{ required: true, message: '患者性别不能为空', trigger: 'blur' }],
356
+          gender: [{ required: true, message: '患者性别不能为空', trigger: 'change' }],
387
           id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
357
           id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur' }],
388
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
358
           doctor: [{ required: true, message: '请选择医生', trigger: 'blur' }],
389
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
359
           department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
451
     methods: {
421
     methods: {
452
       check11(){
422
       check11(){
453
 
423
 
454
-
455
-
456
         if(this.form.social_type == 0 || this.form.social_type == ''){
424
         if(this.form.social_type == 0 || this.form.social_type == ''){
457
           this.$message.error("社保类型不能为空")
425
           this.$message.error("社保类型不能为空")
458
           return
426
           return
771
       hide: function () {
739
       hide: function () {
772
         this.visibility = false
740
         this.visibility = false
773
         this.$refs['formValue'].resetFields()
741
         this.$refs['formValue'].resetFields()
774
-      }, cancel: function(formName) {
742
+      },
743
+       cancel: function(formName) {
775
         this.$emit('cancel', this.getValue())
744
         this.$emit('cancel', this.getValue())
745
+        this.visibility=false
776
         this.$refs['formValue'].resetFields()
746
         this.$refs['formValue'].resetFields()
777
       },
747
       },
778
       confirm: function(formName) {
748
       confirm: function(formName) {
781
             let value = {}
751
             let value = {}
782
             value = this.getValue()
752
             value = this.getValue()
783
             this.$emit('confirm', value)
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 查看文件

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