Procházet zdrojové kódy

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

test_user před 2 roky
rodič
revize
634194dae2

+ 91 - 0
src/api/device.js Zobrazit soubor

@@ -231,4 +231,95 @@ export function DeleteDevicePh(id,params){
231 231
     method:"Get",
232 232
     params:params
233 233
   })
234
+}
235
+
236
+
237
+export function saveNewAirDisinfect(data){
238
+  
239
+  return request({
240
+    url:"/api/manage/savenewairdisinfect",
241
+    method:"post",
242
+    data:data,
243
+  })
244
+}
245
+
246
+export function getNewAirDisinfectList(params){
247
+
248
+  return request({
249
+    url:"/api/manage/getnewairdisinfectlist",
250
+    method:"get",
251
+    params:params
252
+  })
253
+}
254
+
255
+export function getNewAirDisinfectByIdList(id,params){
256
+  
257
+  return request({
258
+    url:"/api/manage/getnewairdisinfectbyidlist?id="+id,
259
+    method:"Get",
260
+    params:params
261
+  })
262
+}
263
+
264
+export function updateNewAirDisinfect(data){
265
+  
266
+  return request({
267
+    url:"/api/manage/updatenewairdisinfect",
268
+    method:post,
269
+    data:data,
270
+  })
271
+}
272
+
273
+export function deleteNewAirDisInfect(id,params){
274
+  
275
+  return request({
276
+    url:"/api/manage/deletenewairdisinfect?id="+id,
277
+    method:"get",
278
+    params:params
279
+  })
280
+}
281
+
282
+export function saveObjectTableDisinfect(data){
283
+  
284
+  return request({
285
+    url:"/api/manage/saveobjtabledisinfect",
286
+    method:"post",
287
+    data:data,
288
+  })
289
+}
290
+
291
+export function getObjectTableDisInfectList(params){
292
+
293
+  return request({
294
+    url:"/api/manage/getobjcttabledisinfectlist",
295
+    method:"Get",
296
+    params:params,
297
+  })
298
+}
299
+
300
+export function getObjectTableDisInfectByIdList(id,params){
301
+  
302
+  return request({
303
+    url:"/api/manage/getobjecttabledisinfectbyidlist?id="+id,
304
+    method:"Get",
305
+    params:params,
306
+  })
307
+}
308
+
309
+export function updateObjectTableDisinfect(data){
310
+
311
+  return request({
312
+    url:"/api/manage/updateobjecttabledisinfect",
313
+    method:"post",
314
+    data:data,
315
+  })
316
+}
317
+
318
+export function deleteObjectTableDisinfect(id,params){
319
+
320
+  return request({
321
+    url:"/api/manage/deleteobjecttabledisinfect?id="+id,
322
+    method:"get",
323
+    params:params
324
+  })
234 325
 }

+ 61 - 0
src/api/manage.js Zobrazit soubor

@@ -737,3 +737,64 @@ export function deleteManageMent(id) {
737 737
   })
738 738
 }
739 739
 
740
+
741
+export function getAllDoctorList(params){
742
+  return request({
743
+    url:"/api/manage/getalldoctorlist",
744
+    method:"Get",
745
+    params:params
746
+  })
747
+}
748
+
749
+export function saveWaterList(equitmentid,data){
750
+  
751
+  return request({
752
+    url:"/api/manage/savewaterlist?equitment_id="+equitmentid,
753
+    method:"post",
754
+    data:data,
755
+  })
756
+}
757
+
758
+export function getWaterFormList(params){
759
+  return request({
760
+    url:"/api/manage/getwaterformlist",
761
+    method:"get",
762
+    params:params,
763
+  })
764
+}
765
+
766
+export function DeleteWater(id,params){
767
+  
768
+  return request({
769
+    url:"/api/manage/dialysisdeletewater?id="+id,
770
+    method:"Get",
771
+    params:params
772
+  })
773
+}
774
+
775
+export function getDialysisWaterDetail(id,params){
776
+  
777
+  return request({
778
+    url:"/api/manage/getdialysiswaterdetail?id="+id,
779
+    method:"Get",
780
+    params:params
781
+  })
782
+}
783
+
784
+export function UpdateDilaysisWater(data,equimentid){
785
+  
786
+  return request({
787
+    url:"/api/manage/updatedialysiswater?equitment_id="+equimentid,
788
+    method:"post",
789
+    data:data,
790
+  })
791
+}
792
+
793
+export function DeleteBatchDialyisWater(data){
794
+  console.log("data",data)
795
+  return request({
796
+    url:"/api/manage/deletebatchdialysiswater",
797
+    method:"Delete",
798
+    data:data,
799
+  })
800
+}

+ 2 - 1
src/lang/zh.js Zobrazit soubor

@@ -272,8 +272,9 @@ export default {
272 272
     histemplate: '处方模版',
273 273
     outpatientSickRecord: '人员定点病种备案',
274 274
     airDisinfect: '空气消毒',
275
+    airDisinfectTwo:"空气消毒",
275 276
     objectTableDisinfect: '物表消毒',
276
-
277
+    objectTableDisinfectTwo:"物表消毒",
277 278
     hospitalStation: '住院工作站',
278 279
     pastInquiries: '既往查询',
279 280
 

+ 39 - 9
src/router/modules/device.js Zobrazit soubor

@@ -48,26 +48,56 @@ export default {
48 48
 
49 49
       }
50 50
     },
51
+    // {
52
+    //   path: '/device/airDisinfect',
53
+    //   component: () => import('@/xt_pages/device/airDisinfect'),
54
+    //   name: 'airDisinfect',
55
+    //   meta: {
56
+    //     title: 'airDisinfect',
57
+    //     noCache: true,
58
+
59
+    //   }
60
+    // },
51 61
     {
52
-      path: '/device/airDisinfect',
53
-      component: () => import('@/xt_pages/device/airDisinfect'),
54
-      name: 'airDisinfect',
62
+      path: '/device/airDisinfectTwo',
63
+      component: () => import('@/xt_pages/device/airDisinfectTwo'),
64
+      name: 'airDisinfectTwo',
55 65
       meta: {
56
-        title: 'airDisinfect',
66
+        title: 'airDisinfectTwo',
57 67
         noCache: true,
58 68
 
59 69
       }
60 70
     },
71
+    // {
72
+    //   path: '/device/objectTableDisinfect',
73
+    //   component: () => import('@/xt_pages/device/objectTableDisinfect'),
74
+    //   name: 'objectTableDisinfect',
75
+    //   meta: {
76
+    //     title: 'objectTableDisinfect',
77
+    //     noCache: true,
78
+
79
+    //   }
80
+    // },
61 81
     {
62
-      path: '/device/objectTableDisinfect',
63
-      component: () => import('@/xt_pages/device/objectTableDisinfect'),
64
-      name: 'objectTableDisinfect',
82
+      path: '/device/objectNewTableDisinfect',
83
+      component: () => import('@/xt_pages/device/objectTableDisinfectTwo'),
84
+      name: 'objectTableDisinfectTwo',
65 85
       meta: {
66
-        title: 'objectTableDisinfect',
86
+        title: 'objectTableDisinfectTwo',
67 87
         noCache: true,
68 88
 
69 89
       }
70
-    }
90
+    },
91
+    // {
92
+    //   path: '/device/waterformprint',
93
+    //   component: () => import('@/xt_pages/management/components/waterFormPrint'),
94
+    //   name: 'waterFormPrint',
95
+    //   meta: {
96
+    //     title: 'waterFormPrint',
97
+    //     noCache: true,
98
+
99
+    //   }
100
+    // }
71 101
 
72 102
   ]
73 103
 }

Diff nebyl zobrazen, protože je příliš veliký
+ 618 - 483
src/xt_pages/device/airDisinfectTwo.vue


Diff nebyl zobrazen, protože je příliš veliký
+ 712 - 559
src/xt_pages/device/objectTableDisinfectTwo.vue


+ 12 - 5
src/xt_pages/management/components/ManageForm.vue Zobrazit soubor

@@ -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;

+ 62 - 12
src/xt_pages/management/components/PlanForm.vue Zobrazit soubor

@@ -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="机表消毒方式:">
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="机表消毒液:">
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"
@@ -127,6 +145,21 @@
127 145
             </el-form-item>
128 146
           </el-col>
129 147
         </el-row>
148
+
149
+        <el-row>
150
+          <el-col :span="10">
151
+            <el-form-item label="床单位更换:" prop="bed_way">
152
+              <el-select style="width:135px" v-model="form.bed_way">
153
+                <el-option
154
+                  v-for="item in this.bedType"
155
+                  :key="item.id"
156
+                  :label="item.name"
157
+                  :value="item.id"
158
+                ></el-option>
159
+              </el-select>
160
+            </el-form-item>
161
+          </el-col>
162
+        </el-row>
130 163
       </el-form>
131 164
       <span slot="footer" class="dialog-footer">
132 165
         <el-button @click="dialogVisible = false">取 消</el-button>
@@ -154,7 +187,8 @@ export default {
154 187
         way: 0,
155 188
         machine_disinfectant: 0,
156 189
         disinfectant_way: 0,
157
-        disinfectant: 0
190
+        disinfectant: 0,
191
+        bed_way:0,
158 192
       },
159 193
       value: [],
160 194
       timeType: [
@@ -211,6 +245,14 @@ export default {
211 245
         { id: 9, name: "5%次氯酸钠" },
212 246
         { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
213 247
       ],
248
+      // 床单位更换
249
+       bedType: [
250
+        { id: 0, name: "/" },
251
+        { id: 1, name: "床单" },
252
+        { id: 2, name: "被套" },
253
+        { id: 3, name: "枕套" },
254
+      
255
+      ],
214 256
       DeviceType: [],
215 257
       planid: 0,
216 258
       plandata: 0
@@ -230,6 +272,7 @@ export default {
230 272
       });
231 273
     },
232 274
     savePlan(formName) {
275
+      
233 276
       var equimentid = this.equimentid;
234 277
       // console.log('equimentid', equimentid);
235 278
       var devicetype = this.form.device_type;
@@ -251,21 +294,26 @@ export default {
251 294
       var disinfectants = this.form.disinfectant;
252 295
       var disinfectant = parseInt(disinfectants);
253 296
       this.form.disinfectant = disinfectant;
297
+      this.form.bed_way = parseInt(this.form.bed_way)
254 298
       savePlan(this.form, this.equimentid).then(response => {
255 299
         if (response.data.state === 1) {
256 300
           var msg = response.data.data.msg;
257 301
           // console.log('msg', msg);
258 302
           this.$message.success("保存成功");
303
+          
259 304
           this.dialogVisible = false;
305
+          this.$refs['form'].resetFields()
260 306
           this.$emit("getAllPlan");
261 307
           this.$emit("getAllPlanDetail");
262 308
           // 如果保存成功通过状态值改变父组键表格的值
263 309
           this.plandata = 1;
264 310
           this.$emit("func", this.plandata);
311
+          
265 312
         } else {
266 313
           this.$message.error("该消毒计划已存在");
267 314
         }
268 315
       });
316
+      
269 317
     },
270 318
     getAllEquitType() {
271 319
       getAllEquitType().then(response => {
@@ -286,10 +334,12 @@ export default {
286 334
 <style lang="scss">
287 335
 #plan-form {
288 336
   .el-form-item__label {
289
-    width: 100px;
337
+    text-align: left;
338
+    // width: 100px;
290 339
   }
291 340
   .el-dialog__footer {
292 341
     text-align: right;
293 342
   }
343
+  // .el-form-item__label
294 344
 }
295 345
 </style>

+ 525 - 9
src/xt_pages/management/components/RepairForm.vue Zobrazit soubor

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

+ 122 - 22
src/xt_pages/management/components/UserForm.vue Zobrazit soubor

@@ -62,6 +62,7 @@
62 62
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
63 63
       </el-col>
64 64
       <el-col :span="6">
65
+        <el-button type="primary" @click="exportlist">导出</el-button>
65 66
         <el-button type="primary" @click="printCard">打印</el-button>
66 67
       </el-col>
67 68
     </el-row>
@@ -100,13 +101,13 @@
100 101
         <el-table-column label="透析方式" align="center" min-width="90px">
101 102
           <template slot-scope="scope">{{ scope.row.dialysis_mode }}</template>
102 103
         </el-table-column>
103
-        <!-- <el-table-column label="使用次数" align="center" min-width="110px">
104
+        <el-table-column label="使用次数" align="center" min-width="110px">
104 105
           <template slot-scope="scope">{{ scope.row.user_total }}</template>
105
-        </el-table-column>-->
106
+        </el-table-column>
106 107
         <el-table-column label="运行" align="center" min-width="110px">
107 108
           <template slot-scope="scope">{{ scope.row.move }}</template>
108 109
         </el-table-column>
109
-        <el-table-column label="机表(床单元、床旁桌)消毒" align="center" min-width="110px">
110
+        <el-table-column label="机表(床单元、床旁桌)消毒" align="center" min-width="110px">
110 111
           <el-table-column label="消毒方式" align="center" min-width="110px">
111 112
             <template slot-scope="scope">{{
112 113
               scope.row.disinfect_type
@@ -323,7 +324,7 @@
323 324
                 </template>
324 325
               </el-autocomplete>
325 326
             </el-form-item>
326
-         
327
+
327 328
           </el-col>
328 329
           <el-col :span="8">
329 330
             <el-form-item label="传染病:">
@@ -475,7 +476,7 @@
475 476
         </el-row>
476 477
         <el-row>
477 478
           <el-col :span="2">
478
-            <el-form-item label="①机表"></el-form-item>
479
+            <el-form-item label="①机表(床单元、床旁桌)"></el-form-item>
479 480
           </el-col>
480 481
           <el-col :span="8">
481 482
             <el-form-item label="消毒方式:" style="width:200px">
@@ -684,7 +685,7 @@
684 685
               >桶
685 686
             </el-form-item>
686 687
             <span style="color:red" v-show="showone"
687
-              >您已个月未更换,请注意检测</span
688
+              >您已个月未更换,请注意检测</span
688 689
             >
689 690
           </el-col>
690 691
         </el-row>
@@ -711,7 +712,7 @@
711 712
             >
712 713
               <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
713 714
               <span style="color:red" v-show="showone"
714
-                >您已个月未更换,请注意检测</span
715
+                >您已个月未更换,请注意检测</span
715 716
               >
716 717
             </el-form-item>
717 718
           </el-col>
@@ -750,7 +751,7 @@
750 751
             >
751 752
               <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
752 753
               <span style="color:red" v-show="showone"
753
-                >您已个月未清洁,请检查</span
754
+                >您已个月未清洁,请检查</span
754 755
               >
755 756
             </el-form-item>
756 757
           </el-col>
@@ -827,6 +828,12 @@
827 828
                 >
828 829
                   透析方式
829 830
                 </td>
831
+                <td
832
+                  :rowspan="2"
833
+                  style="text-align:center;width:60px;font-size:15px"
834
+                >
835
+                  使用次数
836
+                </td>
830 837
                 <td
831 838
                   :rowspan="2"
832 839
                   style="text-align:center;width:60px;font-size:15px"
@@ -837,7 +844,7 @@
837 844
                   :colspan="4"
838 845
                   style="text-align:center;width:60px;font-size:15px"
839 846
                 >
840
-                  机表消毒
847
+                  机表(床单元、床旁桌)消毒
841 848
                 </td>
842 849
                 <td
843 850
                   :colspan="5"
@@ -845,6 +852,24 @@
845 852
                 >
846 853
                   液路消毒
847 854
                 </td>
855
+                <td
856
+                  :rowspan="2"
857
+                  style="text-align:center;width:80px;font-size:15px"
858
+                >
859
+                 透析机消毒液(更换)
860
+                </td>
861
+                <td
862
+                  :rowspan="2"
863
+                  style="text-align:center;width:80px;font-size:15px"
864
+                >
865
+                 细菌过滤器(更换)
866
+                </td>
867
+                <td
868
+                  :rowspan="2"
869
+                  style="text-align:center;width:80px;font-size:15px"
870
+                >
871
+                 空气滤网
872
+                </td>
848 873
                 <td
849 874
                   :rowspan="2"
850 875
                   style="text-align:center;width:80px;font-size:15px"
@@ -897,6 +922,9 @@
897 922
                 <td style="text-align:center;font-size:15px;height:30px">
898 923
                   {{ item.dialysis_mode }}
899 924
                 </td>
925
+                <td style="text-align:center;font-size:15px;height:30px">
926
+                  {{ item.user_total }}
927
+                </td>
900 928
                 <td style="text-align:center;font-size:15px;height:30px">
901 929
                   {{ item.move }}
902 930
                 </td>
@@ -927,6 +955,16 @@
927 955
                 <td style="text-align:center;font-size:15px;height:30px">
928 956
                   {{ item.disinfection_residue }}
929 957
                 </td>
958
+                <td style="text-align:center;font-size:15px;height:30px">
959
+                   {{item.dialysis_checked }}
960
+                </td>
961
+                <td style="text-align:center;font-size:15px;height:30px">
962
+                  {{item.germ_checked }}
963
+                </td>
964
+                <td style="text-align:center;font-size:15px;height:30px">
965
+                  {{item.clean}}
966
+                </td>
967
+
930 968
                 <td style="text-align:center;font-size:15px;height:30px">
931 969
                   {{ item.user_name }}
932 970
                 </td>
@@ -1169,7 +1207,7 @@ export default {
1169 1207
             zone.push({ id: item.id, name: item.name });
1170 1208
           }
1171 1209
           this.zones = zone;
1172
-       
1210
+
1173 1211
           var numbers = response.data.data.numbers;
1174 1212
           var number = [{ id: 0, number: "全部" }];
1175 1213
           for (let index = 0; index < numbers.length; index++) {
@@ -1252,7 +1290,7 @@ export default {
1252 1290
             if (information[index].dialysis_mode === 19) {
1253 1291
               information[index].dialysis_mode = "IUF+HD";
1254 1292
             }
1255
-            
1293
+
1256 1294
             if (information[index].dialysis_mode === 20) {
1257 1295
               information[index].dialysis_mode = "UF";
1258 1296
             }
@@ -1526,7 +1564,7 @@ export default {
1526 1564
           var macher =  response.data.data.macher
1527 1565
            if(macher.user_total == ''){
1528 1566
              macher.user_total = 0
1529
-           }   
1567
+           }
1530 1568
           var totals = count[0].Total + parseInt(macher.user_total)
1531 1569
           this.userform.id = device.id;
1532 1570
           this.userform.spling_date = uParseTime(
@@ -1548,7 +1586,7 @@ export default {
1548 1586
           this.userform.hyperfiltratio = device.hyperfiltratio;
1549 1587
           this.userform.weight_loss = device.weight_loss;
1550 1588
           this.userform.warning_value = device.warning_value;
1551
-       
1589
+
1552 1590
           this.userform.run = device.move;
1553 1591
 
1554 1592
           this.userform.failure_stage = device.failure_stage;
@@ -1564,7 +1602,7 @@ export default {
1564 1602
           this.userform.disinfection_residue = device.disinfection_residue;
1565 1603
           this.userform.longtime = device.long_time;
1566 1604
           this.userform.dialysis_time = device.dialysis_hour;
1567
-        
1605
+
1568 1606
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1569 1607
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1570 1608
           this.userform.equiment_id = device.equiment_id;
@@ -1605,7 +1643,7 @@ export default {
1605 1643
           if (device.disinfection === 0) {
1606 1644
             this.userform.disinfection = "";
1607 1645
           }
1608
-          this.userform.user_total = totals.toString() 
1646
+          this.userform.user_total = totals.toString()
1609 1647
         }
1610 1648
       });
1611 1649
     },
@@ -1721,7 +1759,7 @@ export default {
1721 1759
       this.$refs[formName].validate(valid => {
1722 1760
         if (valid) {
1723 1761
           console.log("hhhh23233323",this.userform)
1724
-       
1762
+
1725 1763
           UpdateForm(this.userform).then(response => {
1726 1764
             if (response.data.state === 1) {
1727 1765
               var information = response.data.data.information;
@@ -1846,7 +1884,7 @@ export default {
1846 1884
             if (information[index].dialysis_mode === 25) {
1847 1885
               information[index].dialysis_mode = "HD高通";
1848 1886
             }
1849
-            
1887
+
1850 1888
             if (information[index].dialysis_mode === 26) {
1851 1889
               information[index].dialysis_mode = "CVVH";
1852 1890
             }
@@ -1863,8 +1901,8 @@ export default {
1863 1901
               information[index].dialysis_mode = "PE";
1864 1902
             }
1865 1903
 
1866
-           
1867
- 
1904
+
1905
+
1868 1906
             if (information[index].move === 0) {
1869 1907
               information[index].move = "";
1870 1908
             }
@@ -2084,7 +2122,7 @@ export default {
2084 2122
     getUserForm(id) {
2085 2123
       getUserForm(id, this.limit, this.page).then(response => {
2086 2124
         if (response.data.state === 1) {
2087
-          var information = response.data.data.information; 
2125
+          var information = response.data.data.information;
2088 2126
           console.log("information",information)
2089 2127
           var addmacher = response.data.data.addmacher;
2090 2128
           console.log("addmacher",addmacher)
@@ -2187,7 +2225,7 @@ export default {
2187 2225
             if (information[index].dialysis_mode === 25) {
2188 2226
               information[index].dialysis_mode = "HD高通";
2189 2227
             }
2190
-            
2228
+
2191 2229
            if (information[index].dialysis_mode === 26) {
2192 2230
               information[index].dialysis_mode = "CVVH";
2193 2231
             }
@@ -2493,7 +2531,69 @@ export default {
2493 2531
           }
2494 2532
         });
2495 2533
       });
2496
-    }
2534
+
2535
+
2536
+    },
2537
+
2538
+    exportlist: function() {
2539
+        for(let i=0;i<this.tableData.length;i++){
2540
+            this.tableData[i].index = i+1
2541
+
2542
+
2543
+            this.tableData[i].record_date_str =  this.getTime(this.tableData[i].date)
2544
+           this.tableData[i].disinfec_startime_str = this.getTimesTwo(this.tableData[i].disinfec_startime)
2545
+           this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2546
+          }
2547
+          import('@/vendor/Export2Excel').then(excel => {
2548
+
2549
+            const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2550
+            const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
2551
+            const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','G1:G2','H1:H2','I1:L1','M1:S1','T1:T2','U1:U2','V1:V2','W1:W2']
2552
+            const filterVal = ['index','bed','record_date_str','class','name','dialysis_mode','user_total','move','disinfect_type','disinfectant_type','disinfection','dialysis_concentration','fluid_path','disinfectant','disinfec_startime_str','disinfec_endtime_str','long_time','disinfection_status','disinfection_residue','dialysis_checked','germ_checked','clean','user_name']
2553
+            const data = this.formatJson(filterVal, this.tableData)
2554
+
2555
+            const filename = '透析机使用登记'
2556
+
2557
+            console.log("rwwwwwwwwwww",this.tableData)
2558
+
2559
+            excel.export_json_to_excel({
2560
+              multiHeader,
2561
+              header,
2562
+              merges,
2563
+              data,
2564
+              filename
2565
+            })
2566
+          })
2567
+      },
2568
+      formatJson(filterVal, jsonData) {
2569
+        return jsonData.map(v => filterVal.map(j => v[j]));
2570
+      },
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
+    },
2497 2597
   },
2498 2598
   created() {
2499 2599
     this.getAllSubregion();

+ 465 - 0
src/xt_pages/management/components/WaterForm.vue Zobrazit soubor

@@ -0,0 +1,465 @@
1
+<template>
2
+    <div id="water-form">
3
+        <el-form ref="form" :rules="rules" :model="form">
4
+         <el-row>
5
+            <el-col>
6
+                <el-form-item label="日期:" required prop="record_date" class="st">
7
+                    <el-date-picker
8
+                    v-model="form.record_date"
9
+                    prefix-icon="none"
10
+                    type="date"
11
+                    placeholder="请选择"
12
+                    format="yyyy-MM-dd"
13
+                    value-format="yyyy-MM-dd"
14
+                    style="width:150px">
15
+                    </el-date-picker>
16
+                </el-form-item>
17
+            </el-col>
18
+         </el-row>
19
+         <el-row>
20
+            <el-col>
21
+                <el-form-item label="设备运行状态:"  class="st">
22
+                    <el-radio v-model="form.machine_status" label="1">正常</el-radio>
23
+                    <el-radio v-model="form.machine_status" label="2">故障</el-radio>
24
+                </el-form-item>
25
+            </el-col>
26
+         </el-row>
27
+         <el-row>
28
+            <el-col>
29
+                <el-form-item label="故障描述:"  class="st">
30
+                    <el-input type="textarea" v-model="form.fault_description" style="width:600px"></el-input>
31
+                </el-form-item>
32
+            </el-col>
33
+         </el-row>
34
+         <el-row>
35
+            <span>原水参数</span>
36
+         </el-row>
37
+         <el-row>
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" 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> -->
42
+                </el-form-item>
43
+            </el-col>
44
+            <el-col :span="8">
45
+                <el-form-item label="原水压力(Mpa):"  class="st">
46
+                    <el-input  v-model="form.water_pressure" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
47
+                </el-form-item>
48
+            </el-col>
49
+            <el-col :span="8">
50
+                <el-form-item label="温度:"  class="st">
51
+                    <el-input  v-model="form.temperature" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
52
+                </el-form-item>
53
+            </el-col>
54
+         </el-row>
55
+         <el-row>
56
+            <el-col :span="24">
57
+                <el-form-item label="加压泵:"  class="st">
58
+                    <el-radio v-model="form.force_pump_status" label="1">正常</el-radio>
59
+                    <el-radio v-model="form.force_pump_status" label="2">故障</el-radio>
60
+                </el-form-item>
61
+            </el-col>
62
+         </el-row>
63
+         <el-row>
64
+            <span>反渗一级</span>
65
+         </el-row>
66
+         <el-row>
67
+            <el-col :span="8">
68
+                <el-form-item label="RO膜进水:"  class="st">
69
+                    <el-input  v-model="form.first_ro_membrane_water" type="number" style="width:100px"></el-input>
70
+                </el-form-item>
71
+            </el-col>
72
+            <el-col :span="8">
73
+                <el-form-item label="RO膜浓水:"  class="st">
74
+                    <el-input  v-model="form.first_ro_film_thick_water" type="number" style="width:100px"></el-input>
75
+                </el-form-item>
76
+            </el-col>
77
+            <el-col :span="8">
78
+                <el-form-item label="RO膜出水:"  class="st">
79
+                    <el-input  v-model="form.first_ro_membrane_effluent" type="number" style="width:100px"></el-input>
80
+                </el-form-item>
81
+            </el-col>
82
+         </el-row>
83
+         <el-row>
84
+            <el-col :span="8">
85
+                <el-form-item label="产水电导度(μs/cm):"  class="st">
86
+                    <el-input  v-model="form.first_production_of_water_conductivity" type="number" style="width:100px"></el-input>
87
+                </el-form-item>
88
+            </el-col>
89
+            <el-col :span="8">
90
+                <el-form-item label="产水量(L/h):"  class="st">
91
+                    <el-input  v-model="form.first_water_yield" style="width:100px" type="number"></el-input>
92
+                </el-form-item>
93
+            </el-col>
94
+         
95
+         </el-row>
96
+         <el-row>
97
+            <span>反渗二级</span>
98
+         </el-row>
99
+         <el-row>
100
+            <el-col :span="8">
101
+                <el-form-item label="RO膜进水:"  class="st">
102
+                    <el-input  v-model="form.last_ro_membrane_water" type="number" style="width:100px"></el-input>
103
+                </el-form-item>
104
+            </el-col>
105
+            <el-col :span="8">
106
+                <el-form-item label="RO膜浓水:"  class="st">
107
+                    <el-input  v-model="form.last_ro_film_thick_water" type="number" style="width:100px"></el-input>
108
+                </el-form-item>
109
+            </el-col>
110
+            <el-col :span="8">
111
+                <el-form-item label="RO膜出水:"  class="st">
112
+                    <el-input  v-model="form.last_ro_membrane_effluent" type="number" style="width:100px"></el-input>
113
+                </el-form-item>
114
+            </el-col>
115
+         </el-row>
116
+         <el-row>
117
+            <el-col :span="8">
118
+                <el-form-item label="产水电导度(μs/cm):"  class="st">
119
+                    <el-input  v-model="form.last_production_of_water_conductivity" type="number" style="width:100px"></el-input>
120
+                </el-form-item>
121
+            </el-col>
122
+            <el-col :span="8">
123
+                <el-form-item label="产水量(L/h):"  class="st">
124
+                    <el-input  v-model="form.last_water_yield" type="number" style="width:100px"></el-input>
125
+                </el-form-item>
126
+            </el-col>
127
+         </el-row>
128
+
129
+         <el-row>
130
+            <el-col :span="8">
131
+                <el-form-item label="碳罐(MPa):"  class="st">
132
+                    <el-input  v-model="form.carbon_tank" type="number" style="width:100px"></el-input>
133
+                </el-form-item>
134
+            </el-col>
135
+            <el-col :span="8">
136
+                <el-form-item label="砂罐(MPa):"  class="st">
137
+                    <el-input  v-model="form.snd_tank" type="number" style="width:100px"></el-input>
138
+                </el-form-item>
139
+            </el-col>
140
+            <el-col :span="8">
141
+                <el-form-item label="树脂罐(MPa):"  class="st">
142
+                    <el-input  v-model="form.resin_tank" type="number" style="width:100px"></el-input>
143
+                </el-form-item>
144
+            </el-col>
145
+         </el-row>
146
+         <el-row>
147
+            <el-col :span="8">
148
+                <el-form-item label="精密过滤器(MPa):"  class="st">
149
+                    <el-input  v-model="form.ultrafilter" type="number" style="width:100px"></el-input>
150
+                </el-form-item>
151
+            </el-col>
152
+         </el-row>
153
+
154
+         <el-row>
155
+            <span>水质监测</span>
156
+         </el-row>
157
+
158
+         <el-row>
159
+            <el-col :span="8">
160
+                <el-form-item label="硬度监测(mg/l):"  class="st">
161
+                    <el-input  v-model="form.hardness_monitoring" style="width:100px"
162
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
163
+                </el-form-item>
164
+            </el-col>
165
+            <el-col :span="8">
166
+                <el-form-item label="总氯检测(mg/l):"  class="st">
167
+                    <el-input  v-model="form.total_chlorine_detection" style="width:100px"
168
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
169
+                </el-form-item>
170
+            </el-col>
171
+            <el-col :span="8">
172
+                <el-form-item label="PH值检测:"  class="st">
173
+                    <el-input  v-model="form.ph_detection" style="width:100px"
174
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
175
+                </el-form-item>
176
+            </el-col>
177
+         </el-row>
178
+
179
+         <el-row>
180
+            <el-col :span="8">
181
+                <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
182
+                    <el-input  v-model="form.concentration_of_peroxyacetic_acid" style="width:100px"
183
+                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
184
+                </el-form-item>
185
+            </el-col>
186
+         </el-row>
187
+
188
+         <el-row>
189
+            <el-col :span="8">
190
+                <el-checkbox v-model="form.reverse_osmosis_membrane_disinfection">反渗膜消毒</el-checkbox>
191
+            </el-col>
192
+            <el-col :span="8">
193
+                <el-form-item label="消毒方式:"  class="st">
194
+                    <el-select style="width:135px" v-model="form.first_disinfection_method">
195
+                        <el-option
196
+                        v-for="item in this.disinfectionType"
197
+                        :key="item.id"
198
+                        :label="item.name"
199
+                        :value="item.id"
200
+                        ></el-option>
201
+                     </el-select>
202
+                </el-form-item>
203
+            </el-col>
204
+            <el-col :span="8">
205
+                <el-form-item label="时长(h):"  class="st">
206
+                    <el-input  v-model="form.first_disinfection_time" type="number" style="width:100px"></el-input>
207
+                </el-form-item>
208
+            </el-col>
209
+         </el-row>
210
+
211
+         <el-row>
212
+            <el-col :span="8">
213
+                <el-checkbox v-model="form.disinfection_of_water_pipeline">输水管道消毒</el-checkbox>
214
+            </el-col>
215
+            <el-col :span="8">
216
+                <el-form-item label="消毒方式:"  class="st">
217
+                    <el-select style="width:135px" v-model="form.last_disinfection_method">
218
+                        <el-option
219
+                        v-for="item in this.disinfectionType"
220
+                        :key="item.id"
221
+                        :label="item.name"
222
+                        :value="item.id"
223
+                        ></el-option>
224
+                     </el-select>
225
+                </el-form-item>
226
+            </el-col>
227
+            <el-col :span="8">
228
+                <el-form-item label="时长(h):"  class="st">
229
+                    <el-input  v-model="form.last_disinfection_time" type="number" style="width:100px"></el-input>
230
+                </el-form-item>
231
+            </el-col>
232
+         </el-row>
233
+
234
+         <el-row>
235
+          
236
+            <el-col :span="8">
237
+                <el-form-item label="过滤器更换(只):"  class="st">
238
+                    <el-input  v-model="form.filter_replacement" style="width:100px" 
239
+                    oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
240
+                </el-form-item>
241
+            </el-col>
242
+
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>
246
+                </el-form-item>
247
+            </el-col>
248
+         </el-row>
249
+
250
+         <el-row>
251
+          <el-col :span="8">
252
+              <el-form-item label="记录人:" prop="admin_user_id"  class="st">
253
+                <el-select style="width:135px" v-model="form.admin_user_id">
254
+                    <el-option
255
+                    v-for="item in this.nurseList"
256
+                    :key="item.admin_user_id"
257
+                    :label="item.user_name"
258
+                    :value="item.admin_user_id"
259
+                    ></el-option>
260
+                 </el-select>
261
+              </el-form-item>
262
+          </el-col>
263
+
264
+        
265
+        </el-row>
266
+       
267
+        </el-form>
268
+        <div style="float:right">
269
+            <el-button type="primary" @click="saveWater('form')">保存</el-button>
270
+        </div>
271
+
272
+      
273
+    </div>
274
+</template>
275
+<script>
276
+const moment = require('moment')
277
+import {getAllDoctorList,saveWaterList} from "@/api/manage";
278
+ export default {
279
+    name: "WaterForm",
280
+    props: {
281
+    equimentid: Number
282
+  },
283
+    data(){
284
+        return{
285
+            form:{
286
+              record_date: moment(new Date()).format('YYYY-MM-DD'), // 日期
287
+              machine_status:"1",//设备运行状态
288
+              fault_description:"",//故障描述
289
+              water_conductivity:"",//原水电导度
290
+              water_pressure:"",//原水压力
291
+              temperature:"",//温度
292
+              force_pump_status:"1",//加压泵
293
+
294
+              first_ro_membrane_water:"",//ro膜进水
295
+              first_ro_film_thick_water:"",//RO膜浓水
296
+              first_ro_membrane_effluent:"",//RO膜出水
297
+              first_production_of_water_conductivity:"",//产水电导度
298
+              first_water_yield:"",//产水量
299
+
300
+              last_ro_membrane_water:"",//ro膜进水
301
+              last_ro_film_thick_water:"",//ro膜进水
302
+              last_ro_membrane_effluent:"",
303
+              last_production_of_water_conductivity:"",//产水电导度
304
+              last_water_yield:"",//产水量
305
+             
306
+              carbon_tank:"",//碳罐
307
+              snd_tank:"",//砂罐,
308
+              resin_tank:"",//树脂罐
309
+              ultrafilter:"",//精密过滤器
310
+              hardness_monitoring:"",//硬度监测
311
+              total_chlorine_detection:"",//总录检测,
312
+              ph_detection:"",//PH值检测,
313
+              concentration_of_peroxyacetic_acid:"",//过氧乙酸浓度,
314
+              reverse_osmosis_membrane_disinfection:"",//反渗膜消毒
315
+              disinfection_of_water_pipeline:"",//输水管道消毒
316
+              first_disinfection_method:"",//消毒方式
317
+              last_disinfection_method:"",//消毒方式
318
+              first_disinfection_time:"",//消毒时长
319
+              last_disinfection_time:"",//消毒时长
320
+              remark:"",//备注
321
+              filter_replacement:"",//过滤器更换
322
+              admin_user_id:"",//记录人
323
+              
324
+            },
325
+            machineType:[
326
+               {id:0,name:"全部"}, 
327
+               {id:1,name:"正常"}, 
328
+               {id:2,name:"故障"}, 
329
+            ],
330
+            forcePumpList:[
331
+              {id:0,name:"全部"},
332
+              {id:1,name:"正常"},
333
+              {id:2,name:"故障"},
334
+            ],
335
+            disinfectionType:[
336
+            { id: 0, name: "请选择" },
337
+            { id: 1, name: "热消毒" },
338
+            { id: 2, name: "化学消毒" }   
339
+            ],
340
+            checked:"",
341
+            rules: {
342
+             admin_user_id: [{ required: true, message: '请选择记录人' }],
343
+           },
344
+           nurseList:[],
345
+        }
346
+
347
+    },
348
+    methods:{
349
+        saveWater(formName){
350
+        // console.log("form",this.form,this.equimentid)
351
+        this.form.force_pump_status = parseInt(this.form.force_pump_status)
352
+        this.form.machine_status = parseInt(this.form.machine_status)
353
+        if(this.form.reverse_osmosis_membrane_disinfection == true){
354
+           this.form.reverse_osmosis_membrane_disinfection = 1
355
+        }
356
+        if(this.form.reverse_osmosis_membrane_disinfection == false){
357
+           this.form.reverse_osmosis_membrane_disinfection = 2
358
+        }
359
+        if(this.form.disinfection_of_water_pipeline == true){
360
+          this.form.disinfection_of_water_pipeline = 1
361
+        }
362
+        if(this.form.disinfection_of_water_pipeline == false){
363
+          this.form.disinfection_of_water_pipeline = 2
364
+        }
365
+
366
+        this.form.water_conductivity = parseFloat(this.form.water_conductivity)
367
+        this.form.water_pressure = parseFloat(this.form.water_pressure)
368
+        this.form.temperature = parseFloat(this.form.temperature)
369
+        this.form.force_pump_status = parseFloat(this.form.force_pump_status)
370
+        this.form.first_ro_membrane_water = parseFloat(this.form.first_ro_membrane_water)
371
+        this.form.first_ro_film_thick_water = parseFloat(this.form.first_ro_film_thick_water)
372
+        this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent)
373
+        this.form.first_production_of_water_conductivity = parseFloat(this.form.first_production_of_water_conductivity)
374
+        this.form.first_water_yield = parseFloat(this.form.first_water_yield)
375
+        this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water)
376
+        this.form.last_ro_membrane_effluent = parseFloat(this.form.last_ro_membrane_effluent)
377
+        this.form.last_ro_film_thick_water = parseFloat(this.form.last_ro_film_thick_water)
378
+        this.form.last_production_of_water_conductivity = parseFloat(this.form.last_production_of_water_conductivity)
379
+        this.form.last_water_yield = parseFloat(this.form.last_water_yield)
380
+        this.form.carbon_tank = parseFloat(this.form.carbon_tank)
381
+        this.form.snd_tank = parseFloat(this.form.snd_tank)
382
+        this.form.resin_tank= parseFloat(this.form.resin_tank)
383
+        this.form.ultrafilter = parseFloat(this.form.ultrafilter)
384
+        this.form.hardness_monitoring = parseFloat(this.form.hardness_monitoring)
385
+        this.form.total_chlorine_detection = parseFloat(this.form.total_chlorine_detection)
386
+        this.form.ph_detection = parseFloat(this.form.ph_detection)
387
+        this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid)
388
+        this.form.reverse_osmosis_membrane_disinfection= parseFloat(this.form.reverse_osmosis_membrane_disinfection)
389
+        this.form.first_disinfection_method = parseFloat(this.form.first_disinfection_method)
390
+        this.form.last_disinfection_method = parseFloat(this.form.last_disinfection_method)
391
+        this.form.first_disinfection_time = parseFloat(this.form.first_disinfection_time)
392
+        this.form.last_disinfection_time = parseFloat(this.form.last_disinfection_time)
393
+        this.form.filter_replacement = parseFloat(this.form.filter_replacement)
394
+        this.form.admin_user_id = parseFloat(this.form.admin_user_id)
395
+        this.form.disinfection_of_water_pipeline = parseFloat(this.form.disinfection_of_water_pipeline)
396
+        console.log("fomr=================",this.form)
397
+         this.$refs[formName].validate((valid) => {
398
+          if (valid) {
399
+            saveWaterList(this.equimentid,this.form).then(response=>{
400
+             if(response.data.state == 1){
401
+                var deviceWater =  response.data.data.deviceWater
402
+                console.log("保存成功!",deviceWater)
403
+                this.$message.success("保存成功!")
404
+
405
+                this.form.fault_description = ""
406
+                this.form.water_conductivity = ""
407
+                this.form.water_pressure = ""
408
+                this.form.temperature = ""
409
+                this.form.first_ro_membrane_water = ""
410
+                this.form.first_ro_film_thick_water = ""
411
+                this.form.first_ro_membrane_effluent=""
412
+                this.form.first_production_of_water_conductivity = ""
413
+                this.form.first_water_yield = ""
414
+                this.form.last_ro_membrane_water= ""
415
+                this.form.last_ro_film_thick_water= ""
416
+                this.form.last_ro_membrane_effluent = ""
417
+                this.form.last_production_of_water_conductivity = ""
418
+                this.form.last_water_yield = ""
419
+                this.form.carbon_tank = ""
420
+                this.form.snd_tank = ""
421
+                this.form.resin_tank= ""
422
+                this.form.ultrafilter= ""
423
+                this.form.hardness_monitoring = ""
424
+                this.form.total_chlorine_detection= ""
425
+                this.form.concentration_of_peroxyacetic_acid = ""
426
+                this.form.reverse_osmosis_membrane_disinfection = ""
427
+                this.form.disinfection_of_water_pipeline= ""
428
+                this.form.first_disinfection_method = ""
429
+                this.form.last_disinfection_method = ""
430
+                this.form.first_disinfection_time = ""
431
+                this.form.last_disinfection_time = ""
432
+                this.form.remark = ""
433
+                this.form.filter_replacement = ""
434
+             }
435
+           })
436
+
437
+          }
438
+        })
439
+       },
440
+       getAllDoctorList(){
441
+         getAllDoctorList().then(response=>{
442
+           if(response.data.state == 1){
443
+             var doctorList = response.data.data.list
444
+             console.log("dcotorlist",doctorList)
445
+             for(let i=0;i<doctorList.length;i++){
446
+              if(doctorList[i].user_type == 3){
447
+                 this.nurseList.push(doctorList[i])
448
+              }
449
+             }
450
+
451
+           }
452
+         })
453
+       }
454
+    },
455
+    created(){
456
+      
457
+       this.getAllDoctorList()
458
+    }
459
+ }
460
+</script>
461
+<style >
462
+.newMain .el-form-item__label {
463
+    width: 110px !important;
464
+}
465
+</style>

Diff nebyl zobrazen, protože je příliš veliký
+ 1223 - 0
src/xt_pages/management/components/WaterFormList.vue


+ 157 - 0
src/xt_pages/management/components/waterFormPrint.vue Zobrazit soubor

@@ -0,0 +1,157 @@
1
+<template>
2
+    <div hidden="hidden">
3
+      <div id="print-card-info" v-show="hiddenShow">
4
+        <div>
5
+          <div class="print_main_content">
6
+            <div class="order_title">设备使用记录清单</div>
7
+          </div>
8
+          <div>
9
+            <div class="printClass">打印日期:{{ nowTime }}</div>
10
+            <table
11
+              border="1"
12
+              style="width:100%"
13
+              cellspacing="0"
14
+              cellpadding="0"
15
+              class="tableClass"
16
+            >
17
+              <tr>
18
+                <td
19
+                  :rowspan="2"
20
+                  style="text-align:center;width:60px;font-size:15px;"
21
+                >
22
+                  机号
23
+                </td>
24
+                <td
25
+                  :rowspan="2"
26
+                  style="text-align:center;width:100px;font-size:15px"
27
+                >
28
+                  日期
29
+                </td>
30
+                <td
31
+                  :rowspan="2"
32
+                  style="text-align:center;width:50px;font-size:15px"
33
+                >
34
+                  班次
35
+                </td>
36
+                <td
37
+                  :rowspan="2"
38
+                  style="text-align:center;width:70px;font-size:15px"
39
+                >
40
+                  患者
41
+                </td>
42
+                <td
43
+                  :rowspan="2"
44
+                  style="text-align:center;width:60px;font-size:15px"
45
+                >
46
+                  透析方式
47
+                </td>
48
+                <td
49
+                  :rowspan="2"
50
+                  style="text-align:center;width:60px;font-size:15px"
51
+                >
52
+                  运行
53
+                </td>
54
+                <td
55
+                  :colspan="4"
56
+                  style="text-align:center;width:60px;font-size:15px"
57
+                >
58
+                  机表消毒
59
+                </td>
60
+                <td
61
+                  :colspan="5"
62
+                  style="text-align:center;width:80px;font-size:15px"
63
+                >
64
+                  液路消毒
65
+                </td>
66
+                <td
67
+                  :rowspan="2"
68
+                  style="text-align:center;width:80px;font-size:15px"
69
+                >
70
+                  签名
71
+                </td>
72
+              </tr>
73
+              <tr>
74
+                <td style="text-align:center;width:70px;font-size:15px">
75
+                  消毒方式
76
+                </td>
77
+                <td style="text-align:center;width:50px;font-size:15px">
78
+                  消毒液
79
+                </td>
80
+                <td style="text-align:center;width:70px;font-size:15px">
81
+                  消毒状态
82
+                </td>
83
+                <td style="text-align:center;width:95px;font-size:15px">
84
+                  消毒液浓度
85
+                </td>
86
+                <td style="text-align:center;width:70px;font-size:15px">
87
+                  消毒方式
88
+                </td>
89
+                <td style="text-align:center;width:50px;font-size:15px">
90
+                  消毒液
91
+                </td>
92
+                <td style="text-align:center;width:70px;font-size:15px">
93
+                  消毒时长/min
94
+                </td>
95
+                <td style="text-align:center;width:70px;font-size:15px">
96
+                  消毒状态
97
+                </td>
98
+                <td style="text-align:center;width:70px;font-size:15px">
99
+                  消毒液残留
100
+                </td>
101
+              </tr>
102
+              <tr v-for="item in this.tableData" :key="item.id">
103
+                <td style="text-align:center;font-size:15px;height:30px">
104
+                 
105
+                </td>
106
+                <td style="text-align:center;font-size:15px;height:30px">
107
+                 
108
+                </td>
109
+                <td style="text-align:center;font-size:15px;height:30px">
110
+                 
111
+                </td>
112
+                <td style="text-align:center;font-size:15px;height:30px">
113
+                 
114
+                </td>
115
+                <td style="text-align:center;font-size:15px;height:30px">
116
+                 
117
+                </td>
118
+                <td style="text-align:center;font-size:15px;height:30px">
119
+                
120
+                </td>
121
+                <td style="text-align:center;font-size:15px;height:30px">
122
+                 
123
+                </td>
124
+                <td style="text-align:center;font-size:15px;height:30px">
125
+                  
126
+                </td>
127
+                <td style="text-align:center;font-size:15px;height:30px">
128
+                
129
+                </td>
130
+                <td style="text-align:center;font-size:15px;height:30px">
131
+                 
132
+                </td>
133
+                <td style="text-align:center;font-size:15px;height:30px">
134
+                 
135
+                </td>
136
+                <td style="text-align:center;font-size:15px;height:30px">
137
+                
138
+                </td>
139
+                <td style="text-align:center;font-size:15px;height:30px">
140
+                  
141
+                </td>
142
+                <td style="text-align:center;font-size:15px;height:30px">
143
+                 
144
+                </td>
145
+                <td style="text-align:center;font-size:15px;height:30px">
146
+                  
147
+                </td>
148
+                <td style="text-align:center;font-size:15px;height:30px">
149
+                 
150
+                </td>
151
+              </tr>
152
+            </table>
153
+          </div>
154
+        </div>
155
+      </div>
156
+    </div>
157
+</template>

+ 91 - 24
src/xt_pages/management/home.vue Zobrazit soubor

@@ -773,12 +773,12 @@
773 773
                                                     {{scope.row.classtime}}
774 774
                                                  </template>
775 775
                                         </el-table-column>
776
-                                         <el-table-column label="机表消毒方式" align="center" min-width="110px" >
776
+                                         <el-table-column label="机表(床单元、床旁桌)消毒方式" align="center" min-width="110px" >
777 777
                                                 <template slot-scope="scope">
778 778
                                                     {{scope.row.way}}
779 779
                                                  </template>
780 780
                                         </el-table-column>
781
-                                         <el-table-column label="机表消毒液" align="center" min-width="100px"  >
781
+                                         <el-table-column label="机表(床单元、床旁桌)消毒液" align="center" min-width="100px"  >
782 782
                                                 <template slot-scope="scope">
783 783
                                                      {{scope.row.machine_disinfectant}}
784 784
                                                  </template>
@@ -792,6 +792,14 @@
792 792
                                                 <template slot-scope="scope">
793 793
                                                     {{scope.row.disinfectant}}
794 794
                                                  </template>
795
+                                        </el-table-column>
796
+                                        <el-table-column label="床单位更换" align="center" min-width="100px" >
797
+                                                <template slot-scope="scope">
798
+                                                   <span v-if="scope.row.bed_way ==0">/</span>
799
+                                                   <span v-if="scope.row.bed_way ==1">床单</span>
800
+                                                   <span v-if="scope.row.bed_way ==2">被套</span>
801
+                                                   <span v-if="scope.row.bed_way ==3">枕套</span>
802
+                                                 </template>
795 803
                                         </el-table-column>
796 804
                                          <el-table-column label="消毒时长/min" align="center" min-width="60px" >
797 805
                                                 <template slot-scope="scope">
@@ -863,12 +871,12 @@
863 871
                                                     {{scope.row.classtime}}
864 872
                                                  </template>
865 873
                                         </el-table-column>
866
-                                         <el-table-column label="基表消毒方式" align="center" min-width="110px"  >
874
+                                         <el-table-column label="机表(床单元、床旁桌)消毒方式" align="center" min-width="110px"  >
867 875
                                                 <template slot-scope="scope">
868 876
                                                     {{scope.row.way}}
869 877
                                                  </template>
870 878
                                         </el-table-column>
871
-                                         <el-table-column label="基表消毒液" align="center" min-width="100px"  >
879
+                                         <el-table-column label="机表(床单元、床旁桌)消毒液" align="center" min-width="100px"  >
872 880
                                                 <template slot-scope="scope">
873 881
                                                    {{scope.row.machine_disinfectant}}
874 882
                                                  </template>
@@ -882,6 +890,15 @@
882 890
                                                 <template slot-scope="scope">
883 891
                                                    {{scope.row.disinfectan_way}}
884 892
                                                  </template>
893
+                                        </el-table-column>
894
+                                        <el-table-column label="床单位更换" align="center" min-width="100px" >
895
+                                                <template slot-scope="scope">
896
+                                                  
897
+                                                   <span v-if="scope.row.bed_way ==0">/</span>
898
+                                                   <span v-if="scope.row.bed_way ==1">床单</span>
899
+                                                   <span v-if="scope.row.bed_way ==2">被套</span>
900
+                                                   <span v-if="scope.row.bed_way ==3">枕套</span>
901
+                                                 </template>
885 902
                                         </el-table-column>
886 903
                                          <el-table-column label="消毒时长/min" align="center" min-width="60px" >
887 904
                                                 <template slot-scope="scope">
@@ -920,8 +937,6 @@
920 937
                        </div>
921 938
                    </el-tab-pane>
922 939
 
923
-
924
-
925 940
                    <el-tab-pane label="使用登记" name="third">
926 941
                        <div class="userbutton">
927 942
                           <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
@@ -930,7 +945,7 @@
930 945
                         <el-tabs type="border-card" v-model="activeNameThree" @tab-click="handleClick">
931 946
                           <el-tab-pane label="新增使用登记" name="first">
932 947
 
933
-                             <el-form :model="userform" ref="userform" :rules="userRules">
948
+                             <el-form :model="userform" ref="userform" :rules="userRules" v-if="device_type == 1">
934 949
                                 <el-row>
935 950
                                   <el-col :span="8">
936 951
                                      <el-form-item label="日期:" required prop="date" class="st">
@@ -1108,7 +1123,7 @@
1108 1123
                                 </el-row>
1109 1124
                                 <el-row>
1110 1125
                                   <el-col :span="3">
1111
-                                      <el-form-item label="①机表(床单位、床旁桌)"></el-form-item>
1126
+                                      <el-form-item label="①机表(床单元,床旁桌)"></el-form-item>
1112 1127
                                   </el-col>
1113 1128
                                   <el-col :span="10">
1114 1129
                                      <el-form-item label="消毒方式:" required prop="disinfect_type">
@@ -1275,7 +1290,7 @@
1275 1290
                                       <el-form-item label="规格:">
1276 1291
                                           <el-input style="width:100px" v-model="userform.norms"></el-input><span style="color:#606266;">桶</span>
1277 1292
                                       </el-form-item>
1278
-                                       <span class="warn" v-show="warnShow">您已个月未更换,请注意检测</span>
1293
+                                       <span class="warn" v-show="warnShow">您已个月未更换,请注意检测</span>
1279 1294
                                    </el-col>
1280 1295
                                 </el-row>
1281 1296
                                 <el-row>
@@ -1292,7 +1307,7 @@
1292 1307
                                    <el-col :span="8">
1293 1308
                                      <el-form-item label="细菌过滤器:">
1294 1309
                                        <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
1295
-                                       <span class="warn" v-show="warnShowTwo">您已个月未更换,请注意检测</span>
1310
+                                       <span class="warn" v-show="warnShowTwo">您已个月未更换,请注意检测</span>
1296 1311
                                      </el-form-item>
1297 1312
 
1298 1313
                                      </el-col>
@@ -1319,7 +1334,7 @@
1319 1334
                                    <el-col :span="8">
1320 1335
                                       <el-form-item label="空气滤网清洁:">
1321 1336
                                         <el-checkbox v-model="userform.clean">清洁</el-checkbox>
1322
-                                      <span class="warn" v-show="warnShowThree">您已个月未清洁,请检查</span>
1337
+                                      <span class="warn" v-show="warnShowThree">您已个月未清洁,请检查</span>
1323 1338
                                       </el-form-item>
1324 1339
                                      </el-col>
1325 1340
                                    <el-col :span="8">
@@ -1347,10 +1362,14 @@
1347 1362
                                   </div>
1348 1363
                                 </el-row>
1349 1364
                              </el-form>
1350
-                           
1365
+
1366
+                            <water-form ref="waterForm" v-if="device_type == 2" :equimentid="equimentid"></water-form>
1367
+
1351 1368
                           </el-tab-pane>
1352
-                           <el-tab-pane label="使用登记列表" name="second">
1353
-                             <user-form ref="userForm" :userdata="userdata"></user-form>
1369
+
1370
+                           <el-tab-pane label="使用登记列表" name="second" >
1371
+                             <user-form ref="userForm" :userdata="userdata" v-if="device_type == 1"></user-form>
1372
+                             <water-form-list ref="waterFormList" v-if="device_type == 2" :equimentid="equimentid"></water-form-list>
1354 1373
                            </el-tab-pane>
1355 1374
                        </el-tabs>
1356 1375
                      </div>
@@ -2297,6 +2316,7 @@
2297 2316
                           暂无数据
2298 2317
                         </div>
2299 2318
                    </el-tab-pane>
2319
+                   
2300 2320
                     <el-tab-pane label="维修维护" name="five">
2301 2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2302 2322
                          <el-tab-pane label="新增维修维护" name="first">
@@ -2360,6 +2380,32 @@
2360 2380
                                   </el-form-item>
2361 2381
                                </el-col>
2362 2382
                              </el-row>
2383
+                             <el-row>
2384
+                              <el-col :span="24">
2385
+                                  <el-form-item class="formItem" label="功能及附件检查:">
2386
+                                     <el-input
2387
+                                        type="textarea"
2388
+                                        :rows="2"
2389
+                                         placeholder="请输入内容"
2390
+                                         v-model="guaForm.function_accessories_inspection"
2391
+                                        style="width:85%">
2392
+                                     </el-input>
2393
+                                  </el-form-item>
2394
+                                </el-col>
2395
+                             </el-row>
2396
+                             <el-row>
2397
+                              <el-col :span="24">
2398
+                                  <el-form-item class="formItem" label="其他:">
2399
+                                     <el-input
2400
+                                        type="textarea"
2401
+                                        :rows="2"
2402
+                                         placeholder="请输入内容"
2403
+                                         v-model="guaForm.other_information"
2404
+                                        style="width:85%">
2405
+                                     </el-input>
2406
+                                  </el-form-item>
2407
+                                </el-col>
2408
+                             </el-row>
2363 2409
                              <el-row>
2364 2410
                                <el-col :span="24">
2365 2411
                                   <el-form-item label="故障发生阶段">
@@ -2384,7 +2430,7 @@
2384 2430
                              </el-row>
2385 2431
                              <el-row>
2386 2432
                                 <el-col :span="8">
2387
-                                    <el-form-item label="故障描述:" required prop="fault_description">
2433
+                                    <el-form-item label="故障现象:" required prop="fault_description">
2388 2434
                                         <el-input
2389 2435
                                            type="textarea"
2390 2436
                                            :rows="2"
@@ -2395,7 +2441,7 @@
2395 2441
                                     </el-form-item>
2396 2442
                                 </el-col>
2397 2443
                                  <el-col :span="8">
2398
-                                    <el-form-item label="原因分析:">
2444
+                                    <el-form-item label="维修内容:">
2399 2445
                                         <el-input
2400 2446
                                            type="textarea"
2401 2447
                                            :rows="2"
@@ -2406,7 +2452,7 @@
2406 2452
                                     </el-form-item>
2407 2453
                                 </el-col>
2408 2454
                                  <el-col :span="8">
2409
-                                    <el-form-item label="处理过程:">
2455
+                                    <el-form-item label="维修结果:">
2410 2456
                                         <el-input
2411 2457
                                            type="textarea"
2412 2458
                                            :rows="2"
@@ -2448,7 +2494,7 @@
2448 2494
                              </el-row>
2449 2495
                              <el-row>
2450 2496
                                <el-col :span="20">
2451
-                                 <el-form-item label="原因:">
2497
+                                 <el-form-item label="备注:">
2452 2498
                                       <el-input
2453 2499
                                           type="textarea"
2454 2500
                                           :rows="2"
@@ -2459,6 +2505,21 @@
2459 2505
                                  </el-form-item>
2460 2506
                                </el-col>
2461 2507
                              </el-row>
2508
+                             <el-row>
2509
+                               <el-col :span="20">
2510
+                                 <el-form-item label="维修者:">
2511
+                                   <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
2512
+                                           <el-option
2513
+                                            v-for="item in autograph"
2514
+                                           :key="item.admin_user_id"
2515
+                                           :label="item.user_name"
2516
+                                           :value="item.admin_user_id"
2517
+                                            style="width:185px">
2518
+                                           </el-option>
2519
+                                    </el-select>
2520
+                                 </el-form-item>
2521
+                               </el-col>
2522
+                             </el-row>
2462 2523
                              <el-row>
2463 2524
                                 <div class="clearn">
2464 2525
                                   <el-col :span="4">
@@ -2649,13 +2710,14 @@
2649 2710
   import QualityForm from './components/QualityForm'
2650 2711
   import RepairForm from './components/RepairForm'
2651 2712
   import RemanderForm from './components/RemanderForm'
2713
+  import WaterForm from './components/WaterForm'
2714
+  import WaterFormList from './components/WaterFormList.vue'
2652 2715
   import { parseTime } from '@/utils'
2653 2716
   import { getFileExtension } from '@/utils/tools'
2654 2717
   import { PostSearch } from '@/api/patient'
2655 2718
   import {saveOxygenates,saveHardWater,saveWater,saveDevicePH} from '@/api/device'
2656 2719
 const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回输']
2657 2720
 const moment = require('moment')
2658
-
2659 2721
 export default {
2660 2722
     name: 'home',
2661 2723
     components: {
@@ -2667,6 +2729,8 @@ export default {
2667 2729
       QualityForm,
2668 2730
       RepairForm,
2669 2731
       RemanderForm,
2732
+      WaterForm,
2733
+      WaterFormList
2670 2734
     },
2671 2735
     data() {
2672 2736
       return {
@@ -3185,7 +3249,9 @@ export default {
3185 3249
           exclude: '',
3186 3250
           reason: '',
3187 3251
           code_information: '',
3188
-          imageName: ''
3252
+          imageName: '',
3253
+          function_accessories_inspection:"",
3254
+          other_information:'',
3189 3255
         },
3190 3256
 
3191 3257
         filename: '',
@@ -3357,7 +3423,7 @@ export default {
3357 3423
         this.tabIndex = index
3358 3424
       },
3359 3425
       handleCurrentChange(val) {
3360
-        console.log("val-------------------------",val)
3426
+       console.log("val232323232323------",val)
3361 3427
         // 通过设备型号区分质量控制
3362 3428
         this.device_type = val.device_type
3363 3429
         this.unitType = val.unit_type
@@ -4949,7 +5015,7 @@ export default {
4949 5015
             if (total === '') {
4950 5016
               this.userform.user_total = ''
4951 5017
             }
4952
-            this.userform.user_total = total
5018
+            // this.userform.user_total = total
4953 5019
           } else {
4954 5020
             this.$message.error('数据返回失败')
4955 5021
           }
@@ -4981,8 +5047,9 @@ export default {
4981 5047
         getTimeBeteen(id, todayTime).then(response => {
4982 5048
           if (response.data.state === 1) {
4983 5049
             var timedata = response.data.data.timeData
5050
+            // console.log("timedata----------------------",timedata)
4984 5051
             if (timedata.length === 0) {
4985
-              this.warnShow = true
5052
+              this.warnShow = false
4986 5053
             }
4987 5054
             if (timedata.length !== 0) {
4988 5055
               this.warnShow = false
@@ -5078,7 +5145,7 @@ export default {
5078 5145
               if(addmacher.user_total == ''){
5079 5146
                   addmacher.user_total = 0
5080 5147
               }   
5081
-              this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5148
+              // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5082 5149
             }
5083 5150
          })
5084 5151
        },

+ 12 - 39
src/xt_pages/outpatientCharges/components/registerDialog.vue Zobrazit soubor

@@ -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 Zobrazit soubor

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