Browse Source

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

28169 2 years ago
parent
commit
64f5833c33

+ 3 - 3
src/xt_pages/device/objectTableDisinfectTwo.vue View File

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 View File

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 View File

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>

+ 46 - 20
src/xt_pages/management/components/UserForm.vue View File

324
                 </template>
324
                 </template>
325
               </el-autocomplete>
325
               </el-autocomplete>
326
             </el-form-item>
326
             </el-form-item>
327
-         
327
+
328
           </el-col>
328
           </el-col>
329
           <el-col :span="8">
329
           <el-col :span="8">
330
             <el-form-item label="传染病:">
330
             <el-form-item label="传染病:">
964
                 <td style="text-align:center;font-size:15px;height:30px">
964
                 <td style="text-align:center;font-size:15px;height:30px">
965
                   {{item.clean}}
965
                   {{item.clean}}
966
                 </td>
966
                 </td>
967
-              
967
+
968
                 <td style="text-align:center;font-size:15px;height:30px">
968
                 <td style="text-align:center;font-size:15px;height:30px">
969
                   {{ item.user_name }}
969
                   {{ item.user_name }}
970
                 </td>
970
                 </td>
1207
             zone.push({ id: item.id, name: item.name });
1207
             zone.push({ id: item.id, name: item.name });
1208
           }
1208
           }
1209
           this.zones = zone;
1209
           this.zones = zone;
1210
-       
1210
+
1211
           var numbers = response.data.data.numbers;
1211
           var numbers = response.data.data.numbers;
1212
           var number = [{ id: 0, number: "全部" }];
1212
           var number = [{ id: 0, number: "全部" }];
1213
           for (let index = 0; index < numbers.length; index++) {
1213
           for (let index = 0; index < numbers.length; index++) {
1290
             if (information[index].dialysis_mode === 19) {
1290
             if (information[index].dialysis_mode === 19) {
1291
               information[index].dialysis_mode = "IUF+HD";
1291
               information[index].dialysis_mode = "IUF+HD";
1292
             }
1292
             }
1293
-            
1293
+
1294
             if (information[index].dialysis_mode === 20) {
1294
             if (information[index].dialysis_mode === 20) {
1295
               information[index].dialysis_mode = "UF";
1295
               information[index].dialysis_mode = "UF";
1296
             }
1296
             }
1564
           var macher =  response.data.data.macher
1564
           var macher =  response.data.data.macher
1565
            if(macher.user_total == ''){
1565
            if(macher.user_total == ''){
1566
              macher.user_total = 0
1566
              macher.user_total = 0
1567
-           }   
1567
+           }
1568
           var totals = count[0].Total + parseInt(macher.user_total)
1568
           var totals = count[0].Total + parseInt(macher.user_total)
1569
           this.userform.id = device.id;
1569
           this.userform.id = device.id;
1570
           this.userform.spling_date = uParseTime(
1570
           this.userform.spling_date = uParseTime(
1586
           this.userform.hyperfiltratio = device.hyperfiltratio;
1586
           this.userform.hyperfiltratio = device.hyperfiltratio;
1587
           this.userform.weight_loss = device.weight_loss;
1587
           this.userform.weight_loss = device.weight_loss;
1588
           this.userform.warning_value = device.warning_value;
1588
           this.userform.warning_value = device.warning_value;
1589
-       
1589
+
1590
           this.userform.run = device.move;
1590
           this.userform.run = device.move;
1591
 
1591
 
1592
           this.userform.failure_stage = device.failure_stage;
1592
           this.userform.failure_stage = device.failure_stage;
1602
           this.userform.disinfection_residue = device.disinfection_residue;
1602
           this.userform.disinfection_residue = device.disinfection_residue;
1603
           this.userform.longtime = device.long_time;
1603
           this.userform.longtime = device.long_time;
1604
           this.userform.dialysis_time = device.dialysis_hour;
1604
           this.userform.dialysis_time = device.dialysis_hour;
1605
-        
1605
+
1606
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1606
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1607
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1607
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1608
           this.userform.equiment_id = device.equiment_id;
1608
           this.userform.equiment_id = device.equiment_id;
1643
           if (device.disinfection === 0) {
1643
           if (device.disinfection === 0) {
1644
             this.userform.disinfection = "";
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
       this.$refs[formName].validate(valid => {
1759
       this.$refs[formName].validate(valid => {
1760
         if (valid) {
1760
         if (valid) {
1761
           console.log("hhhh23233323",this.userform)
1761
           console.log("hhhh23233323",this.userform)
1762
-       
1762
+
1763
           UpdateForm(this.userform).then(response => {
1763
           UpdateForm(this.userform).then(response => {
1764
             if (response.data.state === 1) {
1764
             if (response.data.state === 1) {
1765
               var information = response.data.data.information;
1765
               var information = response.data.data.information;
1884
             if (information[index].dialysis_mode === 25) {
1884
             if (information[index].dialysis_mode === 25) {
1885
               information[index].dialysis_mode = "HD高通";
1885
               information[index].dialysis_mode = "HD高通";
1886
             }
1886
             }
1887
-            
1887
+
1888
             if (information[index].dialysis_mode === 26) {
1888
             if (information[index].dialysis_mode === 26) {
1889
               information[index].dialysis_mode = "CVVH";
1889
               information[index].dialysis_mode = "CVVH";
1890
             }
1890
             }
1901
               information[index].dialysis_mode = "PE";
1901
               information[index].dialysis_mode = "PE";
1902
             }
1902
             }
1903
 
1903
 
1904
-           
1905
- 
1904
+
1905
+
1906
             if (information[index].move === 0) {
1906
             if (information[index].move === 0) {
1907
               information[index].move = "";
1907
               information[index].move = "";
1908
             }
1908
             }
2122
     getUserForm(id) {
2122
     getUserForm(id) {
2123
       getUserForm(id, this.limit, this.page).then(response => {
2123
       getUserForm(id, this.limit, this.page).then(response => {
2124
         if (response.data.state === 1) {
2124
         if (response.data.state === 1) {
2125
-          var information = response.data.data.information; 
2125
+          var information = response.data.data.information;
2126
           console.log("information",information)
2126
           console.log("information",information)
2127
           var addmacher = response.data.data.addmacher;
2127
           var addmacher = response.data.data.addmacher;
2128
           console.log("addmacher",addmacher)
2128
           console.log("addmacher",addmacher)
2225
             if (information[index].dialysis_mode === 25) {
2225
             if (information[index].dialysis_mode === 25) {
2226
               information[index].dialysis_mode = "HD高通";
2226
               information[index].dialysis_mode = "HD高通";
2227
             }
2227
             }
2228
-            
2228
+
2229
            if (information[index].dialysis_mode === 26) {
2229
            if (information[index].dialysis_mode === 26) {
2230
               information[index].dialysis_mode = "CVVH";
2230
               information[index].dialysis_mode = "CVVH";
2231
             }
2231
             }
2532
         });
2532
         });
2533
       });
2533
       });
2534
 
2534
 
2535
-      
2535
+
2536
     },
2536
     },
2537
-   
2537
+
2538
     exportlist: function() {
2538
     exportlist: function() {
2539
         for(let i=0;i<this.tableData.length;i++){
2539
         for(let i=0;i<this.tableData.length;i++){
2540
             this.tableData[i].index = i+1
2540
             this.tableData[i].index = i+1
2541
 
2541
 
2542
-           
2542
+
2543
             this.tableData[i].record_date_str =  this.getTime(this.tableData[i].date)
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
            this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2545
            this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2546
           }
2546
           }
2547
           import('@/vendor/Export2Excel').then(excel => {
2547
           import('@/vendor/Export2Excel').then(excel => {
2548
-          
2548
+
2549
             const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2549
             const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2550
             const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
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']
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
             const filename = '透析机使用登记'
2555
             const filename = '透析机使用登记'
2556
 
2556
 
2557
             console.log("rwwwwwwwwwww",this.tableData)
2557
             console.log("rwwwwwwwwwww",this.tableData)
2558
-            
2558
+
2559
             excel.export_json_to_excel({
2559
             excel.export_json_to_excel({
2560
               multiHeader,
2560
               multiHeader,
2561
               header,
2561
               header,
2568
       formatJson(filterVal, jsonData) {
2568
       formatJson(filterVal, jsonData) {
2569
         return jsonData.map(v => filterVal.map(j => v[j]));
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
   created() {
2598
   created() {
2573
     this.getAllSubregion();
2599
     this.getAllSubregion();

+ 25 - 15
src/xt_pages/management/components/WaterForm.vue View File

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>

+ 42 - 43
src/xt_pages/management/components/WaterFormList.vue View File

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

+ 1 - 2
src/xt_pages/management/home.vue View File

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>
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">

+ 12 - 39
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

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 View File

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