Просмотр исходного кода

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

XMLWAN 2 лет назад
Родитель
Сommit
7489b562f2

+ 91 - 0
src/api/device.js Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

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

+ 1 - 0
src/router/index_路由未分离前.js Просмотреть файл

@@ -645,6 +645,7 @@ export const xt_asyncRouterMap = [
645 645
         name: 'CourseOfDiseaseManage',
646 646
         meta: { title: 'CourseOfDiseaseManage', noCache: true }
647 647
       },
648
+      
648 649
       {
649 650
         path: '/patients/rescue',
650 651
         component: () => import('@/xt_pages/user/rescueRecord'),

+ 40 - 8
src/router/modules/device.js Просмотреть файл

@@ -48,24 +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
 
89
+      }
90
+    },
91
+    {
92
+      path: '/device/waterformprint',
93
+      component: () => import('@/xt_pages/management/components/waterFormPrint'),
94
+      name: 'waterFormPrint',
95
+      is_menu: false,
96
+      hidden: true,
97
+      meta: {
98
+        title: 'waterFormPrint',
99
+        noCache: true,
100
+        
69 101
       }
70 102
     }
71 103
 

Разница между файлами не показана из-за своего большого размера
+ 709 - 484
src/xt_pages/device/airDisinfectTwo.vue


Разница между файлами не показана из-за своего большого размера
+ 823 - 556
src/xt_pages/device/objectTableDisinfectTwo.vue


+ 13 - 6
src/xt_pages/management/components/ManageForm.vue Просмотреть файл

@@ -16,7 +16,7 @@
16 16
               ></el-input>
17 17
             </el-form-item>
18 18
           </el-col>
19
-
19
+          
20 20
           <el-col :span="8">
21 21
             <el-form-item label="设备类型:" required prop="device_type">
22 22
               <el-select
@@ -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: 60px;
855
+  }
849 856
 }
850 857
 .el-checkbox {
851 858
   color: #606266;

+ 62 - 12
src/xt_pages/management/components/PlanForm.vue Просмотреть файл

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

+ 328 - 6
src/xt_pages/management/components/RepairForm.vue Просмотреть файл

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-row class="row">
4
-      <el-col :span="5">
4
+      <!-- <el-col :span="5">
5 5
         <span class="machineClass">机号:</span>
6 6
         <el-select style="width:100px" v-model="forms.bed">
7 7
           <el-option
@@ -11,8 +11,8 @@
11 11
             :value="item.id"
12 12
           ></el-option>
13 13
         </el-select>
14
-      </el-col>
15
-      <el-col :span="11">
14
+      </el-col> -->
15
+      <el-col :span="10">
16 16
         <span class="machineClass">日期查询:</span>
17 17
         <el-date-picker
18 18
           v-model="forms.start_time"
@@ -47,8 +47,12 @@
47 47
       <el-col :span="2">
48 48
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49 49
       </el-col>
50
+      <span>&nbsp;&nbsp;</span>
51
+      <el-col :span="6">
52
+          <el-button type="primary" @click="printCard">打印</el-button>
53
+      </el-col>
50 54
     </el-row>
51
-    <el-row>
55
+
52 56
       <el-table
53 57
         ref="multipleTable"
54 58
         @selection-change="handleSelectionChange"
@@ -62,6 +66,125 @@
62 66
         fit
63 67
         highlight-current-row
64 68
         style="width: 100%;margin-top: 10px;"
69
+      >
70
+        <el-table-column
71
+          align="center"
72
+          type="selection"
73
+          width="55"
74
+        ></el-table-column>
75
+        <el-table-column prop="date" label="设备名称" width="100" align="center">
76
+           <template slot-scope="scope">
77
+              {{ getDeviceName(scope.row.equitment_id) }}
78
+           </template>
79
+        </el-table-column>
80
+
81
+        <el-table-column prop="date" label= "型号" width="80" align="center">
82
+          <template slot-scope="scope">
83
+            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span>
84
+            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span>
85
+            <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span>
86
+          </template>
87
+        </el-table-column>
88
+
89
+         <el-table-column label="保养维护内容" align="center" min-width="110px">
90
+            <el-table-column label="功能及附件检查" align="center" min-width="110px">
91
+              <template slot-scope="scope">
92
+                 {{scope.row.function_accessories_inspection }}
93
+              </template>
94
+            </el-table-column>
95
+            <el-table-column label="其他" align="center" min-width="110px">
96
+              <template slot-scope="scope">
97
+                 {{ scope.row.other_information }}
98
+              </template>
99
+            </el-table-column>
100
+          </el-table-column>
101
+
102
+          <el-table-column label="维修记录" align="center" min-width="110px">
103
+            <el-table-column label="故障现象" align="center" min-width="110px">
104
+              <template slot-scope="scope">
105
+                 {{ scope.row.fault_description }}
106
+              </template>
107
+            </el-table-column>
108
+            <el-table-column label="维修内容" align="center" min-width="110px">
109
+              <template slot-scope="scope">
110
+                 {{ scope.row.cause_analysis }}
111
+              </template>
112
+            </el-table-column>
113
+
114
+            <el-table-column label="维修结果" align="center" min-width="110px">
115
+              <template slot-scope="scope">
116
+                {{ scope.row.treatment_process }}
117
+              </template>
118
+            </el-table-column>
119
+          </el-table-column>
120
+
121
+          <el-table-column prop="date" label= "维修者" width="80" align="center">
122
+            <template slot-scope="scope">
123
+                {{ getName(scope.row.admin_user_id) }}
124
+              </template>
125
+           </el-table-column>
126
+
127
+           <el-table-column prop="date" label= "日期" width="80" align="center">
128
+            <template slot-scope="scope">
129
+              {{ getTime(scope.row.guarantee_date) }}
130
+              </template>
131
+           </el-table-column>
132
+
133
+           <el-table-column prop="date" label= "备注" width="80" align="center">
134
+            <template slot-scope="scope">
135
+              {{ scope.row.reason }}
136
+              </template>
137
+           </el-table-column>
138
+
139
+
140
+
141
+        <el-table-column label="操作" align="center" min-width="150px">
142
+          <template slot-scope="scope">
143
+            <el-tooltip
144
+              class="item"
145
+              effect="dark"
146
+              content="编辑"
147
+              placement="top"
148
+            >
149
+              <el-button
150
+                size="mini"
151
+                type="primary"
152
+                icon="el-icon-edit-outline"
153
+                @click="
154
+                  EditRepair(scope.row.id, scope.row.sampler, scope.$index)
155
+                "
156
+              ></el-button>
157
+            </el-tooltip>
158
+
159
+            <el-tooltip
160
+              class="item"
161
+              effect="dark"
162
+              content="删除"
163
+              placement="top"
164
+            >
165
+              <el-button
166
+                size="mini"
167
+                type="danger"
168
+                icon="el-icon-delete"
169
+                @click="DeleteRepairs(scope.row.id, scope.$index)"
170
+              ></el-button>
171
+            </el-tooltip>
172
+          </template>
173
+        </el-table-column>
174
+      </el-table>
175
+      <!-- <el-table
176
+        ref="multipleTable"
177
+        @selection-change="handleSelectionChange"
178
+        :row-style="{ color: '#303133' }"
179
+        :header-cell-style="{
180
+          backgroundColor: 'rgb(245, 247, 250)',
181
+          color: '#606266'
182
+        }"
183
+        :data="tableData"
184
+        border
185
+        fit
186
+        highlight-current-row
187
+        style="width: 100%;margin-top: 10px;"
65 188
       >
66 189
         <el-table-column
67 190
           align="center"
@@ -222,7 +345,7 @@
222 345
       ></el-pagination>
223 346
     </el-row>
224 347
 
225
-    <!-- 编辑维修记录 -->
348
+    <-- 编辑维修记录 -->
226 349
     <el-dialog
227 350
       title="编辑维修记录"
228 351
       :visible.sync="dialogVisible"
@@ -413,6 +536,153 @@
413 536
         >
414 537
       </span>
415 538
     </el-dialog>
539
+
540
+
541
+    <div hidden="hidden">
542
+      <div id="print-card-info-one" v-show="hiddenShow">
543
+        <div>
544
+          <div class="print_main_content-one">
545
+            <div class="order_title" style="text-align: center;">医疗器械保养维护、维修登记表</div>
546
+          </div>
547
+          <div>
548
+            <div class="printClass">打印日期:{{ nowTime }}</div>
549
+            <table
550
+              border="1"
551
+              style="width:100%"
552
+              cellspacing="0"
553
+              cellpadding="0"
554
+              class="tableClass"
555
+            >
556
+              <tr>
557
+                <td
558
+                  :rowspan="2"
559
+                  style="text-align:center;width:60px;font-size:15px;"
560
+                >
561
+                  设备名称
562
+                </td>
563
+
564
+                <td
565
+                  :rowspan="2"
566
+                  style="text-align:center;width:60px;font-size:15px;"
567
+                >
568
+                  型号
569
+                </td>
570
+
571
+                <td
572
+                  :colspan="2"
573
+                  style="text-align:center;width:60px;font-size:15px;"
574
+                >
575
+                 保养维护内容
576
+                </td>
577
+
578
+                <td
579
+                  :colspan="3"
580
+                  style="text-align:center;width:60px;font-size:15px;"
581
+                >
582
+                  维修记录
583
+                </td>
584
+
585
+                <td
586
+                  :rowspan="2"
587
+                  style="text-align:center;width:60px;font-size:15px;"
588
+                >
589
+                 维修者
590
+                </td>
591
+
592
+                <td
593
+                  :rowspan="2"
594
+                  style="text-align:center;width:120px;font-size:15px;"
595
+                >
596
+                 日期
597
+                </td>
598
+
599
+                <td
600
+                 :rowspan="2"
601
+                  style="text-align:center;width:60px;font-size:15px;"
602
+                >
603
+                 备注
604
+                </td>
605
+
606
+
607
+
608
+
609
+              </tr>
610
+              <tr>
611
+
612
+                <td style="text-align:center;font-size:15px;height:30px">
613
+                  功能及附件检查
614
+                </td>
615
+
616
+                <td style="text-align:center;font-size:15px;height:30px">
617
+                  其他
618
+                </td>
619
+
620
+
621
+                <td style="text-align:center;font-size:15px;height:30px">
622
+                  故障现象
623
+                </td>
624
+
625
+                <td style="text-align:center;font-size:15px;height:30px">
626
+                  维修内容
627
+                </td>
628
+
629
+                <td style="text-align:center;font-size:15px;height:30px">
630
+                  维修结果
631
+                </td>
632
+
633
+
634
+
635
+              </tr>
636
+              <tr v-for="item in this.tableData" :key="item.id">
637
+                <td style="text-align:center;font-size:15px;height:30px">
638
+                  {{ getDeviceName(item.equitment_id) }}
639
+                </td>
640
+
641
+                <td style="text-align:center;font-size:15px;height:30px">
642
+                  <span v-if="getRepairName(item.equitment_id) == 1">透析机</span>
643
+                  <span v-if="getRepairName(item.equitment_id) == 2">水处理机</span>
644
+                  <span v-if="getRepairName(item.equitment_id) == 3">其他</span>
645
+                </td>
646
+
647
+                <td style="text-align:center;font-size:15px;height:30px">
648
+                  {{item.function_accessories_inspection }}
649
+                </td>
650
+
651
+                <td style="text-align:center;font-size:15px;height:30px">
652
+                  {{ item.other_information }}
653
+                </td>
654
+
655
+                <td style="text-align:center;font-size:15px;height:30px">
656
+                  {{ item.fault_description }}
657
+                </td>
658
+
659
+                <td style="text-align:center;font-size:15px;height:30px">
660
+                   {{item.cause_analysis }}
661
+                </td>
662
+
663
+                <td style="text-align:center;font-size:15px;height:30px">
664
+                    {{item.treatment_process}}
665
+                </td>
666
+
667
+
668
+                <td style="text-align:center;font-size:15px;height:30px">
669
+                  {{ getName(item.admin_user_id) }}
670
+                </td>
671
+
672
+                <td style="text-align:center;font-size:15px;height:30px">
673
+                  {{ getTime(item.guarantee_date) }}
674
+                </td>
675
+
676
+                <td style="text-align:center;font-size:15px;height:30px">
677
+                  {{item.reason }}
678
+                </td>
679
+
680
+              </tr>
681
+            </table>
682
+          </div>
683
+        </div>
684
+      </div>
685
+      </div>
416 686
   </div>
417 687
 </template>
418 688
 
@@ -428,6 +698,7 @@ import {
428 698
 } from "@/api/manage";
429 699
 import { uParseTime } from "@/utils/tools";
430 700
 import { getFileExtension } from "@/utils/tools";
701
+const moment = require('moment')
431 702
 export default {
432 703
   name: "RepairForm",
433 704
   data() {
@@ -455,7 +726,8 @@ export default {
455 726
         exclude: "",
456 727
         reason: "",
457 728
         code_information: "",
458
-        image_name: ""
729
+        image_name: "",
730
+        admin_user_id:"",
459 731
       },
460 732
       isIndeterminate: false,
461 733
       checkAllStatus: false,
@@ -483,6 +755,10 @@ export default {
483 755
       limit: 10,
484 756
       page: 1,
485 757
       total: 0,
758
+      hiddenShow:false,
759
+      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
760
+      docList:[],
761
+      macherList:[]
486 762
     };
487 763
   },
488 764
   methods: {
@@ -515,6 +791,8 @@ export default {
515 791
         if (response.data.state === 1) {
516 792
           var repair = response.data.data.repair;
517 793
           console.log("repair是", repair);
794
+          this.macherList = response.data.data.macherList
795
+          this.docList = response.data.data.docList
518 796
           // eslint-disable-next-line no-unused-vars
519 797
           var total = response.data.data.total;
520 798
           this.total = total;
@@ -807,6 +1085,50 @@ export default {
807 1085
           }
808 1086
         });
809 1087
       });
1088
+    },
1089
+    getDeviceName(equimentid){
1090
+      var equitname = ""
1091
+      for(let i=0;i<this.macherList.length;i++){
1092
+        if(equimentid == this.macherList[i].id){
1093
+           equitname = this.macherList[i].device_name
1094
+        }
1095
+      }
1096
+      return equitname
1097
+    },
1098
+    getRepairName(equimentid){
1099
+      var equitname = ""
1100
+      for(let i=0;i<this.macherList.length;i++){
1101
+        if(equimentid == this.macherList[i].id){
1102
+           equitname = this.macherList[i].device_type
1103
+        }
1104
+      }
1105
+      return equitname
1106
+    },
1107
+    getName(admin_user_id){
1108
+      var user_name=  ""
1109
+      for(let i=0;i<this.docList.length;i++){
1110
+        if(admin_user_id == this.docList[i].admin_user_id){
1111
+           user_name = this.docList[i].user_name
1112
+        }
1113
+      }
1114
+      return user_name
1115
+    },
1116
+    printCard(){
1117
+      this.hiddenShow = true;
1118
+      var ptime = Math.round(new Date().getTime() / 1000);
1119
+      this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1120
+
1121
+      const style =
1122
+        "@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}";
1123
+
1124
+      setTimeout(() => {
1125
+        printJS({
1126
+          printable: "print-card-info-one",
1127
+          type: "html",
1128
+          style: style,
1129
+          scanStyles: false
1130
+        });
1131
+      }, 1);
810 1132
     }
811 1133
   },
812 1134
   created() {

+ 133 - 45
src/xt_pages/management/components/UserForm.vue Просмотреть файл

@@ -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="传染病:">
@@ -361,7 +362,7 @@
361 362
                 value-format="yyyy-MM-dd HH:mm"
362 363
                 placeholder="选择时间"
363 364
                 v-model="userform.start_time"
364
-                style="width:185px"
365
+
365 366
               ></el-date-picker>
366 367
             </el-form-item>
367 368
           </el-col>
@@ -373,7 +374,6 @@
373 374
                 value-format="yyyy-MM-dd HH:mm"
374 375
                 placeholder="选择时间"
375 376
                 v-model="userform.end_time"
376
-                style="width:185px"
377 377
               ></el-date-picker>
378 378
             </el-form-item>
379 379
           </el-col>
@@ -475,7 +475,7 @@
475 475
         </el-row>
476 476
         <el-row>
477 477
           <el-col :span="2">
478
-            <el-form-item label="①机表"></el-form-item>
478
+            <el-form-item label="①机表(床单元、床旁桌)"></el-form-item>
479 479
           </el-col>
480 480
           <el-col :span="8">
481 481
             <el-form-item label="消毒方式:" style="width:200px">
@@ -633,7 +633,7 @@
633 633
                 value-format="yyyy-MM-dd HH:mm"
634 634
                 placeholder="选择时间"
635 635
                 v-model="userform.starttime"
636
-                style="width:185px"
636
+
637 637
               ></el-date-picker>
638 638
             </el-form-item>
639 639
           </el-col>
@@ -645,7 +645,7 @@
645 645
                 value-format="yyyy-MM-dd HH:mm"
646 646
                 placeholder="选择时间"
647 647
                 v-model="userform.endtime"
648
-                style="width:185px"
648
+
649 649
               ></el-date-picker>
650 650
             </el-form-item>
651 651
           </el-col>
@@ -799,34 +799,40 @@
799 799
               <tr>
800 800
                 <td
801 801
                   :rowspan="2"
802
-                  style="text-align:center;width:60px;font-size:15px;"
802
+                  style="text-align:center;min-width:40px; font-size:15px;"
803 803
                 >
804 804
                   机号
805 805
                 </td>
806 806
                 <td
807 807
                   :rowspan="2"
808
-                  style="text-align:center;width:100px;font-size:15px"
808
+                  style="text-align:center;min-width:40px;font-size:15px"
809 809
                 >
810 810
                   日期
811 811
                 </td>
812 812
                 <td
813 813
                   :rowspan="2"
814
-                  style="text-align:center;width:50px;font-size:15px"
814
+                  style="text-align:center;min-width:40px;font-size:15px"
815 815
                 >
816 816
                   班次
817 817
                 </td>
818 818
                 <td
819 819
                   :rowspan="2"
820
-                  style="text-align:center;width:70px;font-size:15px"
820
+                  style="text-align:center;min-width:40px;font-size:15px"
821 821
                 >
822 822
                   患者
823 823
                 </td>
824 824
                 <td
825 825
                   :rowspan="2"
826
-                  style="text-align:center;width:60px;font-size:15px"
826
+                  style="text-align:center;min-width:40px;font-size:15px"
827 827
                 >
828 828
                   透析方式
829 829
                 </td>
830
+                <td
831
+                  :rowspan="2"
832
+                  style="text-align:center;min-width:40px;font-size:15px"
833
+                >
834
+                  使用次数
835
+                </td>
830 836
                 <td
831 837
                   :rowspan="2"
832 838
                   style="text-align:center;width:60px;font-size:15px"
@@ -835,16 +841,34 @@
835 841
                 </td>
836 842
                 <td
837 843
                   :colspan="4"
838
-                  style="text-align:center;width:60px;font-size:15px"
844
+                  style="text-align:center;font-size:15px"
839 845
                 >
840
-                  机表消毒
846
+                  机表(床单元、床旁桌)消毒
841 847
                 </td>
842 848
                 <td
843
-                  :colspan="5"
844
-                  style="text-align:center;width:80px;font-size:15px"
849
+                  :colspan="6"
850
+                  style="text-align:center;font-size:15px"
845 851
                 >
846 852
                   液路消毒
847 853
                 </td>
854
+                <td
855
+                  :rowspan="2"
856
+                  style="text-align:center;min-width:40px;font-size:15px"
857
+                >
858
+                 透析机消毒液(更换)
859
+                </td>
860
+                <td
861
+                  :rowspan="2"
862
+                  style="text-align:center;width:80px;font-size:15px"
863
+                >
864
+                 细菌过滤器(更换)
865
+                </td>
866
+                <td
867
+                  :rowspan="2"
868
+                  style="text-align:center;width:80px;font-size:15px"
869
+                >
870
+                 空气滤网
871
+                </td>
848 872
                 <td
849 873
                   :rowspan="2"
850 874
                   style="text-align:center;width:80px;font-size:15px"
@@ -853,31 +877,34 @@
853 877
                 </td>
854 878
               </tr>
855 879
               <tr>
856
-                <td style="text-align:center;width:70px;font-size:15px">
880
+                <td style="text-align:center;min-width:40px;font-size:15px">
857 881
                   消毒方式
858 882
                 </td>
859
-                <td style="text-align:center;width:50px;font-size:15px">
883
+                <td style="text-align:center;min-width:40px;font-size:15px">
860 884
                   消毒液
861 885
                 </td>
862
-                <td style="text-align:center;width:70px;font-size:15px">
886
+                <td style="text-align:center;min-width:40px;font-size:15px">
863 887
                   消毒状态
864 888
                 </td>
865
-                <td style="text-align:center;width:95px;font-size:15px">
889
+                <td style="text-align:center;min-width:40px;font-size:15px">
866 890
                   消毒液浓度
867 891
                 </td>
868
-                <td style="text-align:center;width:70px;font-size:15px">
892
+                <td style="text-align:center;min-width:40px;font-size:15px">
869 893
                   消毒方式
870 894
                 </td>
871
-                <td style="text-align:center;width:50px;font-size:15px">
895
+                <td style="text-align:center;min-width:40px;font-size:15px">
872 896
                   消毒液
873 897
                 </td>
874
-                <td style="text-align:center;width:70px;font-size:15px">
898
+                <td style="text-align:center;min-width:40px;font-size:15px">
899
+                  开始消毒时间
900
+                </td>
901
+                <td style="text-align:center;min-width:40px;font-size:15px">
875 902
                   消毒时长/min
876 903
                 </td>
877
-                <td style="text-align:center;width:70px;font-size:15px">
904
+                <td style="text-align:center;min-width:40px;font-size:15px">
878 905
                   消毒状态
879 906
                 </td>
880
-                <td style="text-align:center;width:70px;font-size:15px">
907
+                <td style="text-align:center;min-width:40px;font-size:15px">
881 908
                   消毒液残留
882 909
                 </td>
883 910
               </tr>
@@ -897,6 +924,9 @@
897 924
                 <td style="text-align:center;font-size:15px;height:30px">
898 925
                   {{ item.dialysis_mode }}
899 926
                 </td>
927
+                <td style="text-align:center;font-size:15px;height:30px">
928
+                  {{ item.user_total }}
929
+                </td>
900 930
                 <td style="text-align:center;font-size:15px;height:30px">
901 931
                   {{ item.move }}
902 932
                 </td>
@@ -927,6 +957,16 @@
927 957
                 <td style="text-align:center;font-size:15px;height:30px">
928 958
                   {{ item.disinfection_residue }}
929 959
                 </td>
960
+                <td style="text-align:center;font-size:15px;height:30px">
961
+                   {{item.dialysis_checked }}
962
+                </td>
963
+                <td style="text-align:center;font-size:15px;height:30px">
964
+                  {{item.germ_checked }}
965
+                </td>
966
+                <td style="text-align:center;font-size:15px;height:30px">
967
+                  {{item.clean}}
968
+                </td>
969
+
930 970
                 <td style="text-align:center;font-size:15px;height:30px">
931 971
                   {{ item.user_name }}
932 972
                 </td>
@@ -1169,13 +1209,16 @@ export default {
1169 1209
             zone.push({ id: item.id, name: item.name });
1170 1210
           }
1171 1211
           this.zones = zone;
1172
-       
1212
+
1173 1213
           var numbers = response.data.data.numbers;
1214
+
1174 1215
           var number = [{ id: 0, number: "全部" }];
1175 1216
           for (let index = 0; index < numbers.length; index++) {
1176 1217
             const item = numbers[index];
1177 1218
             number.push({ id: item.id, number: item.number });
1178 1219
           }
1220
+          this.bedNumberTwo = []
1221
+          this.bedNumberTwo  = number
1179 1222
           this.bedNumber = number;
1180 1223
         }
1181 1224
       });
@@ -1252,7 +1295,7 @@ export default {
1252 1295
             if (information[index].dialysis_mode === 19) {
1253 1296
               information[index].dialysis_mode = "IUF+HD";
1254 1297
             }
1255
-            
1298
+
1256 1299
             if (information[index].dialysis_mode === 20) {
1257 1300
               information[index].dialysis_mode = "UF";
1258 1301
             }
@@ -1514,8 +1557,6 @@ export default {
1514 1557
       });
1515 1558
     },
1516 1559
     EditUser(id, patientid) {
1517
-       console.log("hh2h333232332233232323322323",id)
1518
-       console.log("patient_id2323223323223322332323322323",patientid)
1519 1560
       EditUser(id, patientid).then(response => {
1520 1561
         if (response.data.state === 1) {
1521 1562
           this.dialogVisible = true;
@@ -1526,8 +1567,8 @@ export default {
1526 1567
           var macher =  response.data.data.macher
1527 1568
            if(macher.user_total == ''){
1528 1569
              macher.user_total = 0
1529
-           }   
1530
-          var totals = count[0].Total + parseInt(macher.user_total)
1570
+           }
1571
+          // var totals = count[0].Total + parseInt(macher.user_total)
1531 1572
           this.userform.id = device.id;
1532 1573
           this.userform.spling_date = uParseTime(
1533 1574
               device.date,
@@ -1548,7 +1589,7 @@ export default {
1548 1589
           this.userform.hyperfiltratio = device.hyperfiltratio;
1549 1590
           this.userform.weight_loss = device.weight_loss;
1550 1591
           this.userform.warning_value = device.warning_value;
1551
-       
1592
+
1552 1593
           this.userform.run = device.move;
1553 1594
 
1554 1595
           this.userform.failure_stage = device.failure_stage;
@@ -1564,7 +1605,7 @@ export default {
1564 1605
           this.userform.disinfection_residue = device.disinfection_residue;
1565 1606
           this.userform.longtime = device.long_time;
1566 1607
           this.userform.dialysis_time = device.dialysis_hour;
1567
-        
1608
+
1568 1609
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1569 1610
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1570 1611
           this.userform.equiment_id = device.equiment_id;
@@ -1605,7 +1646,7 @@ export default {
1605 1646
           if (device.disinfection === 0) {
1606 1647
             this.userform.disinfection = "";
1607 1648
           }
1608
-          this.userform.user_total = totals.toString() 
1649
+          this.userform.user_total = device.user_total.toString()
1609 1650
         }
1610 1651
       });
1611 1652
     },
@@ -1721,7 +1762,7 @@ export default {
1721 1762
       this.$refs[formName].validate(valid => {
1722 1763
         if (valid) {
1723 1764
           console.log("hhhh23233323",this.userform)
1724
-       
1765
+
1725 1766
           UpdateForm(this.userform).then(response => {
1726 1767
             if (response.data.state === 1) {
1727 1768
               var information = response.data.data.information;
@@ -1846,7 +1887,7 @@ export default {
1846 1887
             if (information[index].dialysis_mode === 25) {
1847 1888
               information[index].dialysis_mode = "HD高通";
1848 1889
             }
1849
-            
1890
+
1850 1891
             if (information[index].dialysis_mode === 26) {
1851 1892
               information[index].dialysis_mode = "CVVH";
1852 1893
             }
@@ -1863,8 +1904,8 @@ export default {
1863 1904
               information[index].dialysis_mode = "PE";
1864 1905
             }
1865 1906
 
1866
-           
1867
- 
1907
+
1908
+
1868 1909
             if (information[index].move === 0) {
1869 1910
               information[index].move = "";
1870 1911
             }
@@ -2084,7 +2125,7 @@ export default {
2084 2125
     getUserForm(id) {
2085 2126
       getUserForm(id, this.limit, this.page).then(response => {
2086 2127
         if (response.data.state === 1) {
2087
-          var information = response.data.data.information; 
2128
+          var information = response.data.data.information;
2088 2129
           console.log("information",information)
2089 2130
           var addmacher = response.data.data.addmacher;
2090 2131
           console.log("addmacher",addmacher)
@@ -2187,7 +2228,7 @@ export default {
2187 2228
             if (information[index].dialysis_mode === 25) {
2188 2229
               information[index].dialysis_mode = "HD高通";
2189 2230
             }
2190
-            
2231
+
2191 2232
            if (information[index].dialysis_mode === 26) {
2192 2233
               information[index].dialysis_mode = "CVVH";
2193 2234
             }
@@ -2398,7 +2439,10 @@ export default {
2398 2439
             const item = number[i];
2399 2440
             bed.push({ id: item.id, number: item.number });
2400 2441
           }
2442
+          this.bedNumberTwo = []
2401 2443
           this.bedNumberTwo = bed;
2444
+
2445
+          console.log("this233232322323233232",this.bedNumberTwo)
2402 2446
         }
2403 2447
       });
2404 2448
     },
@@ -2458,8 +2502,15 @@ export default {
2458 2502
 
2459 2503
           if (bed.length !== 0) {
2460 2504
             this.form.bed = "";
2505
+            this.bedNumberTwo = []
2461 2506
             this.bedNumberTwo = bed;
2507
+          }else{
2508
+            this.form.bed = ""
2509
+            this.bedNumberTwo = []
2510
+            this.getAllSubregion()
2511
+
2462 2512
           }
2513
+
2463 2514
         }
2464 2515
       });
2465 2516
     },
@@ -2493,8 +2544,44 @@ export default {
2493 2544
           }
2494 2545
         });
2495 2546
       });
2496
-    }
2497
-  },
2547
+
2548
+
2549
+    },
2550
+
2551
+    exportlist: function() {
2552
+        for(let i=0;i<this.tableData.length;i++){
2553
+            this.tableData[i].index = i+1
2554
+
2555
+
2556
+            this.tableData[i].record_date_str =  this.getTime(this.tableData[i].date)
2557
+           this.tableData[i].disinfec_startime_str = this.getTimesTwo(this.tableData[i].disinfec_startime)
2558
+           this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
2559
+          }
2560
+          import('@/vendor/Export2Excel').then(excel => {
2561
+
2562
+            const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
2563
+            const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
2564
+            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']
2565
+            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']
2566
+            const data = this.formatJson(filterVal, this.tableData)
2567
+
2568
+            const filename = '透析机使用登记'
2569
+
2570
+            console.log("rwwwwwwwwwww",this.tableData)
2571
+
2572
+            excel.export_json_to_excel({
2573
+              multiHeader,
2574
+              header,
2575
+              merges,
2576
+              data,
2577
+              filename
2578
+            })
2579
+          })
2580
+      },
2581
+      formatJson(filterVal, jsonData) {
2582
+        return jsonData.map(v => filterVal.map(j => v[j]));
2583
+      },
2584
+    },
2498 2585
   created() {
2499 2586
     this.getAllSubregion();
2500 2587
     // this.getInformationData();
@@ -2502,6 +2589,7 @@ export default {
2502 2589
   },
2503 2590
   watch: {
2504 2591
     userdata(newvalue, oldvalue) {
2592
+      console.log("newVlaue233333333333333333333",newvalue)
2505 2593
       this.getUserForm(newvalue);
2506 2594
       this.getBedForm(newvalue);
2507 2595
       this.value = newvalue;
@@ -2547,7 +2635,7 @@ export default {
2547 2635
     text-align: right;
2548 2636
   }
2549 2637
   .el-input--prefix .el-input__inner {
2550
-    padding-left: 15px;
2638
+    // padding-left: 15px;
2551 2639
   }
2552 2640
   .el-input--prefix .el-input__inner {
2553 2641
     padding-right: 15px;

+ 791 - 0
src/xt_pages/management/components/WaterForm.vue Просмотреть файл

@@ -0,0 +1,791 @@
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):" prop="water_conductivity"  class="st" label-width="100px">
40
+                    <el-input  v-model="form.water_conductivity" style="width:100px"
41
+                        oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
42
+                    >
43
+                    </el-input>
44
+                    <!-- <el-input  v-model="form.water_conductivity" style="width:100px" oninput="value=value.replace(/[^\d+(.\d{1,2})?$]/g,'')" ></el-input> /[^\d^\.]/g,''-->
45
+                    <!-- <el-input  v-model="form.water_conductivity" style="width:100px" onkeyup="value=value.match(/^\d+(.\d{1,2})?$/g,'')" ></el-input> -->
46
+                    <!-- <el-input-number  auto-complete="off" v-model.number="form.water_conductivity" :precision="2" :controls="false"></el-input-number> -->
47
+                </el-form-item>
48
+            </el-col>
49
+            <el-col :span="8">
50
+                <el-form-item label="原水压力(Mpa):"  class="st">
51
+                    <el-input  v-model="form.water_pressure" style="width:100px"
52
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
53
+                    >
54
+                    </el-input>
55
+                    <!-- <el-input-number  auto-complete="off" v-model.number="form.water_pressure" :precision="2" :controls="false"></el-input-number> -->
56
+                </el-form-item>
57
+            </el-col>
58
+            <el-col :span="8">
59
+                <el-form-item label="温度:"  class="st">
60
+                    <el-input  v-model="form.temperature" style="width:100px"
61
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
62
+                     ></el-input>
63
+                    <!-- <el-input-number  auto-complete="off" v-model.number="form.temperature" :precision="2" :controls="false"></el-input-number> -->
64
+                </el-form-item>
65
+            </el-col>
66
+         </el-row>
67
+         <el-row>
68
+            <el-col :span="24">
69
+                <el-form-item label="加压泵:"  class="st">
70
+                    <el-radio v-model="form.force_pump_status" label="1">正常</el-radio>
71
+                    <el-radio v-model="form.force_pump_status" label="2">故障</el-radio>
72
+                </el-form-item>
73
+            </el-col>
74
+         </el-row>
75
+         <el-row :gutter="20">
76
+            <el-col :span="4" style="text-align: center;">
77
+                <span >反渗</span>
78
+            </el-col>
79
+            <el-col :span="4">
80
+                <span >RO膜进水</span>
81
+            </el-col>
82
+            <el-col :span="4">
83
+                <span >RO膜浓水</span>
84
+            </el-col>
85
+            <el-col :span="4">
86
+                <span >RO膜出水</span>
87
+            </el-col>
88
+            <el-col :span="4">
89
+                <span >产水电导度(μs/cm)</span>
90
+            </el-col>
91
+            <el-col :span="4">
92
+                <span >产水量(L/h)</span>
93
+            </el-col>
94
+         </el-row>
95
+         <el-row :gutter="20">
96
+            <el-col :span="4" style="text-align: center;">
97
+                <span>一级</span>
98
+            </el-col>
99
+            <el-col :span="4">
100
+                <el-input v-model="form.first_ro_membrane_water" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
101
+            </el-col>
102
+            <el-col :span="4">
103
+                <el-input v-model="form.first_ro_film_thick_water" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
104
+            </el-col>
105
+            <el-col :span="4">
106
+                <el-input v-model="form.first_ro_membrane_effluent" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
107
+            </el-col>
108
+            <el-col :span="4">
109
+                <el-input v-model="form.first_production_of_water_conductivity" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
110
+            </el-col>
111
+            <el-col :span="4">
112
+                <el-input v-model="form.first_water_yield" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
113
+            </el-col>
114
+         </el-row>
115
+         <el-row :gutter="20">
116
+            <el-col :span="4" style="text-align: center;">
117
+                <span>二级</span>
118
+            </el-col>
119
+            <el-col :span="4">
120
+                <el-input v-model="form.last_ro_membrane_water"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
121
+            </el-col>
122
+            <el-col :span="4">
123
+                <el-input v-model="form.last_ro_film_thick_water"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
124
+            </el-col>
125
+            <el-col :span="4">
126
+                <el-input  v-model="form.last_ro_membrane_effluent"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
127
+            </el-col>
128
+            <el-col :span="4">
129
+                <el-input v-model="form.last_production_of_water_conductivity"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
130
+            </el-col>
131
+            <el-col :span="4">
132
+                <el-input v-model="form.last_water_yield"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
133
+            </el-col>
134
+         </el-row>
135
+         <el-row>
136
+            <el-col :span="8">
137
+                <el-form-item label="碳罐(MPa):"  class="st">
138
+                    <el-input  v-model="form.carbon_tank"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
139
+                </el-form-item>
140
+            </el-col>
141
+            <el-col :span="8">
142
+                <el-form-item label="砂罐(MPa):"  class="st">
143
+                    <el-input  v-model="form.snd_tank"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
144
+                </el-form-item>
145
+            </el-col>
146
+            <el-col :span="8">
147
+                <el-form-item label="树脂罐(MPa):"  class="st">
148
+                    <el-input  v-model="form.resin_tank"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
149
+                </el-form-item>
150
+            </el-col>
151
+         </el-row>
152
+         <el-row>
153
+            <el-col :span="8">
154
+                <el-form-item label="精密过滤器(MPa):"  class="st">
155
+                    <el-input  v-model.number="form.ultrafilter"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
156
+                </el-form-item>
157
+            </el-col>
158
+         </el-row>
159
+
160
+         <el-row>
161
+            <span>水质监测</span>
162
+         </el-row>
163
+
164
+         <el-row>
165
+            <el-col :span="8">
166
+                <el-form-item label="硬度监测(mg/l):"  class="st">
167
+                    <el-input  v-model="form.hardness_monitoring" style="width:100px"
168
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
169
+                     ></el-input>
170
+                </el-form-item>
171
+            </el-col>
172
+            <el-col :span="8">
173
+                <el-form-item label="总氯检测(mg/l):"  class="st">
174
+                    <el-input  v-model="form.total_chlorine_detection" style="width:100px"
175
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
176
+                     ></el-input>
177
+
178
+                </el-form-item>
179
+            </el-col>
180
+            <el-col :span="8">
181
+                <el-form-item label="PH值检测:"  class="st">
182
+                    <el-input  v-model="form.ph_detection" style="width:100px"
183
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
184
+                     ></el-input>
185
+                </el-form-item>
186
+            </el-col>
187
+         </el-row>
188
+
189
+         <el-row>
190
+            <el-col :span="8">
191
+                <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
192
+                    <el-input  v-model="form.concentration_of_peroxyacetic_acid" style="width:100px"
193
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
194
+                     ></el-input>
195
+                </el-form-item>
196
+            </el-col>
197
+         </el-row>
198
+
199
+         <el-row>
200
+            <el-col :span="8">
201
+                <el-checkbox v-model="form.reverse_osmosis_membrane_disinfection">反渗膜消毒</el-checkbox>
202
+            </el-col>
203
+            <el-col :span="8">
204
+                <el-form-item label="消毒方式:"  class="st">
205
+                    <el-select style="width:135px" v-model="form.first_disinfection_method">
206
+                        <el-option
207
+                        v-for="item in this.disinfectionType"
208
+                        :key="item.id"
209
+                        :label="item.name"
210
+                        :value="item.id"
211
+                        ></el-option>
212
+                     </el-select>
213
+                </el-form-item>
214
+            </el-col>
215
+            <el-col :span="8">
216
+                <el-form-item label="时长(h):"  class="st">
217
+                    <el-input  v-model="form.first_disinfection_time" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
218
+                </el-form-item>
219
+            </el-col>
220
+         </el-row>
221
+
222
+         <el-row>
223
+            <el-col :span="8">
224
+                <el-checkbox v-model="form.disinfection_of_water_pipeline">输水管道消毒</el-checkbox>
225
+            </el-col>
226
+            <el-col :span="8">
227
+                <el-form-item label="消毒方式:"  class="st">
228
+                    <el-select style="width:135px" v-model="form.last_disinfection_method">
229
+                        <el-option
230
+                        v-for="item in this.disinfectionType"
231
+                        :key="item.id"
232
+                        :label="item.name"
233
+                        :value="item.id"
234
+                        ></el-option>
235
+                     </el-select>
236
+                </el-form-item>
237
+            </el-col>
238
+            <el-col :span="8">
239
+                <el-form-item label="时长(h):"  class="st">
240
+                    <el-input  v-model="form.last_disinfection_time" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
241
+                </el-form-item>
242
+            </el-col>
243
+         </el-row>
244
+
245
+         <el-row>
246
+
247
+            <el-col :span="8">
248
+                <el-form-item label="过滤器更换(只):"  class="st">
249
+                    <el-input  v-model="form.filter_replacement" style="width:100px"
250
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
251
+                    ></el-input>
252
+                </el-form-item>
253
+            </el-col>
254
+
255
+            <el-col :span="12">
256
+                <el-form-item label="备注:"  class="st" >
257
+                    <el-input type="textarea"  v-model="form.remark" autosize style="width:200px"></el-input>
258
+                </el-form-item>
259
+            </el-col>
260
+         </el-row>
261
+
262
+         <el-row>
263
+          <el-col :span="8">
264
+              <el-form-item label="记录人:" prop="admin_user_id"  class="st">
265
+                <el-select style="width:135px" v-model="form.admin_user_id">
266
+                    <el-option
267
+                    v-for="item in this.nurseList"
268
+                    :key="item.admin_user_id"
269
+                    :label="item.user_name"
270
+                    :value="item.admin_user_id"
271
+                    ></el-option>
272
+                 </el-select>
273
+              </el-form-item>
274
+          </el-col>
275
+
276
+
277
+        </el-row>
278
+
279
+        </el-form>
280
+        <div style="float:right">
281
+            <el-button type="primary" @click="saveWater('form')">保存</el-button>
282
+        </div>
283
+
284
+
285
+    </div>
286
+</template>
287
+<script>
288
+const moment = require('moment')
289
+import {getAllDoctorList,saveWaterList} from "@/api/manage";
290
+ export default {
291
+    name: "WaterForm",
292
+    props: {
293
+    equimentid: Number
294
+  },
295
+    data(){
296
+        return{
297
+            form:{
298
+              record_date: moment(new Date()).format('YYYY-MM-DD'), // 日期
299
+              machine_status:"1",//设备运行状态
300
+              fault_description:"",//故障描述
301
+              water_conductivity:"",//原水电导度
302
+              water_pressure:"",//原水压力
303
+              temperature:"",//温度
304
+              force_pump_status:"1",//加压泵
305
+
306
+              first_ro_membrane_water:"",//ro膜进水
307
+              first_ro_film_thick_water:"",//RO膜浓水
308
+              first_ro_membrane_effluent:"",//RO膜出水
309
+              first_production_of_water_conductivity:"",//产水电导度
310
+              first_water_yield:"",//产水量
311
+
312
+              last_ro_membrane_water:"",//ro膜进水
313
+              last_ro_film_thick_water:"",//ro膜进水
314
+              last_ro_membrane_effluent:"",
315
+              last_production_of_water_conductivity:"",//产水电导度
316
+              last_water_yield:"",//产水量
317
+
318
+              carbon_tank:"",//碳罐
319
+              snd_tank:"",//砂罐,
320
+              resin_tank:"",//树脂罐
321
+              ultrafilter:"",//精密过滤器
322
+              hardness_monitoring:"",//硬度监测
323
+              total_chlorine_detection:"",//总录检测,
324
+              ph_detection:"",//PH值检测,
325
+              concentration_of_peroxyacetic_acid:"",//过氧乙酸浓度,
326
+              reverse_osmosis_membrane_disinfection:"",//反渗膜消毒
327
+              disinfection_of_water_pipeline:"",//输水管道消毒
328
+              first_disinfection_method:"",//消毒方式
329
+              last_disinfection_method:"",//消毒方式
330
+              first_disinfection_time:"",//消毒时长
331
+              last_disinfection_time:"",//消毒时长
332
+              remark:"",//备注
333
+              filter_replacement:"",//过滤器更换
334
+              admin_user_id:"",//记录人
335
+
336
+            },
337
+            machineType:[
338
+               {id:0,name:"全部"},
339
+               {id:1,name:"正常"},
340
+               {id:2,name:"故障"},
341
+            ],
342
+            forcePumpList:[
343
+              {id:0,name:"全部"},
344
+              {id:1,name:"正常"},
345
+              {id:2,name:"故障"},
346
+            ],
347
+            disinfectionType:[
348
+            { id: 0, name: "请选择" },
349
+            { id: 1, name: "热消毒" },
350
+            { id: 2, name: "化学消毒" }
351
+            ],
352
+            checked:"",
353
+            rules: {
354
+                admin_user_id: [{ required: true, message: '请选择记录人' }],
355
+           },
356
+           nurseList:[],
357
+        }
358
+
359
+    },
360
+    methods:{
361
+        saveWater(formName){
362
+        // console.log("form",this.form,this.equimentid)
363
+        if(this.form.force_pump_status!=""){
364
+          this.form.force_pump_status = parseInt(this.form.force_pump_status)
365
+        }
366
+        if(this.form.machine_status!=""){
367
+          this.form.machine_status = parseInt(this.form.machine_status)
368
+        }
369
+
370
+
371
+        if(this.form.reverse_osmosis_membrane_disinfection == true){
372
+           this.form.reverse_osmosis_membrane_disinfection = 1
373
+        }
374
+        if(this.form.reverse_osmosis_membrane_disinfection == false){
375
+           this.form.reverse_osmosis_membrane_disinfection = 2
376
+        }
377
+        if(this.form.disinfection_of_water_pipeline == true){
378
+          this.form.disinfection_of_water_pipeline = 1
379
+        }
380
+        if(this.form.disinfection_of_water_pipeline == false){
381
+          this.form.disinfection_of_water_pipeline = 2
382
+        }
383
+        if(this.form.water_conductivity!=""){
384
+          this.form.water_conductivity = parseFloat(this.form.water_conductivity)== NaN ? 0:parseFloat(this.form.water_conductivity)
385
+        }else{
386
+           this.form.water_conductivity = 0
387
+        }
388
+
389
+        if(this.form.water_pressure!=""){
390
+          this.form.water_pressure = parseFloat(this.form.water_pressure) == NaN ? 0:parseFloat(this.form.water_pressure)
391
+        }else{
392
+            this.form.water_pressure=  0
393
+        }
394
+
395
+        if(this.form.temperature!=""){
396
+          this.form.temperature = parseFloat(this.form.temperature)== NaN ? 0:parseFloat(this.form.temperature)
397
+        }else{
398
+          this.form.temperature = 0
399
+        }
400
+
401
+        if(this.form.force_pump_status!=""){
402
+          this.form.force_pump_status = parseFloat(this.form.force_pump_status) ==  NaN ? 0: parseFloat(this.form.force_pump_status)
403
+        }else{
404
+            this.form.force_pump_status = 0
405
+        }
406
+
407
+        if(this.form.first_ro_membrane_water!=""){
408
+          this.form.first_ro_membrane_water = parseFloat(this.form.first_ro_membrane_water) == NaN?0:parseFloat(this.form.first_ro_membrane_water)
409
+        }else{
410
+          this.form.first_ro_membrane_water = 0
411
+        }
412
+
413
+        if(this.form.first_ro_film_thick_water!=""){
414
+          this.form.first_ro_film_thick_water = parseFloat(this.form.first_ro_film_thick_water) ==NaN?0:parseFloat(this.form.first_ro_film_thick_water)
415
+        }else{
416
+          this.form.first_ro_film_thick_water = 0
417
+        }
418
+
419
+        if(this.form.first_ro_membrane_effluent!=""){
420
+          this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent) == NaN?0:parseFloat(this.form.first_ro_membrane_effluent)
421
+        }else{
422
+           this.form.first_ro_membrane_effluent = 0
423
+        }
424
+
425
+        if(this.form.first_production_of_water_conductivity!=""){
426
+          this.form.first_production_of_water_conductivity = parseFloat(this.form.first_production_of_water_conductivity) == NaN?0: parseFloat(this.form.first_production_of_water_conductivity)
427
+        }else{
428
+          this.form.first_production_of_water_conductivity = 0
429
+        }
430
+
431
+        if(this.form.first_water_yield !=""){
432
+           this.form.first_water_yield = parseFloat(this.form.first_water_yield) == NaN?0:parseFloat(this.form.first_water_yield)
433
+        }else{
434
+            this.form.first_water_yield =0
435
+        }
436
+
437
+        if(this.form.last_ro_membrane_water!=""){
438
+          this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water) ==NaN?0:parseFloat(this.form.last_ro_membrane_water)
439
+        }else{
440
+          this.form.last_ro_membrane_water = 0
441
+        }
442
+
443
+        if(this.form.last_ro_membrane_effluent!=""){
444
+          this.form.last_ro_membrane_effluent = parseFloat(this.form.last_ro_membrane_effluent) == NaN?0:parseFloat(this.form.last_ro_membrane_effluent)
445
+        }else{
446
+          this.form.last_ro_membrane_effluent = 0
447
+        }
448
+
449
+        if(this.form.last_ro_film_thick_water!=""){
450
+            this.form.last_ro_film_thick_water = parseFloat(this.form.last_ro_film_thick_water) == NaN?0:parseFloat(this.form.last_ro_film_thick_water)
451
+        }else{
452
+          this.form.last_ro_film_thick_water = 0
453
+        }
454
+
455
+        if( this.form.last_production_of_water_conductivity!=""){
456
+            this.form.last_production_of_water_conductivity = parseFloat(this.form.last_production_of_water_conductivity) == NaN?0:parseFloat(this.form.last_production_of_water_conductivity)
457
+        }else{
458
+            this.form.last_production_of_water_conductivity =0
459
+        }
460
+
461
+        if(this.form.last_water_yield!=""){
462
+            this.form.last_water_yield = parseFloat(this.form.last_water_yield)==NaN?0: parseFloat(this.form.last_water_yield)
463
+        }else{
464
+            this.form.last_water_yield = 0
465
+        }
466
+
467
+        if(this.form.carbon_tank!=""){
468
+            this.form.carbon_tank = parseFloat(this.form.carbon_tank) == NaN?0:parseFloat(this.form.carbon_tank)
469
+        }else{
470
+            this.form.carbon_tank = 0
471
+        }
472
+
473
+        if( this.form.snd_tank!=""){
474
+            this.form.snd_tank = parseFloat(this.form.snd_tank) == NaN?0:parseFloat(this.form.snd_tank)
475
+        }else{
476
+            this.form.snd_tank = 0
477
+        }
478
+
479
+        if(this.form.resin_tank!=""){
480
+            this.form.resin_tank= parseFloat(this.form.resin_tank) ==NaN?0:parseFloat(this.form.resin_tank)
481
+        }else{
482
+            this.form.resin_tank= 0
483
+        }
484
+
485
+        if( this.form.ultrafilter!=""){
486
+            this.form.ultrafilter = parseFloat(this.form.ultrafilter)== NaN?0:parseFloat(this.form.ultrafilter)
487
+        }else{
488
+          this.form.ultrafilter = 0
489
+        }
490
+
491
+        if(this.form.hardness_monitoring !=""){
492
+            this.form.hardness_monitoring = parseFloat(this.form.hardness_monitoring) ==NaN?0: parseFloat(this.form.hardness_monitoring)
493
+        }else{
494
+           this.form.hardness_monitoring= 0
495
+        }
496
+
497
+        if( this.form.total_chlorine_detection!=""){
498
+            this.form.total_chlorine_detection = parseFloat(this.form.total_chlorine_detection)==NaN?0: parseFloat(this.form.total_chlorine_detection)
499
+        }else{
500
+            this.form.total_chlorine_detection = 0
501
+        }
502
+
503
+        if( this.form.ph_detection!=""){
504
+            this.form.ph_detection = parseFloat(this.form.ph_detection) == NaN?0:parseFloat(this.form.ph_detection)
505
+        }else{
506
+            this.form.ph_detection = 0
507
+        }
508
+
509
+        if(this.form.concentration_of_peroxyacetic_acid!="" ){
510
+            this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid) == NaN?0: parseFloat(this.form.concentration_of_peroxyacetic_acid)
511
+        }else{
512
+            this.form.concentration_of_peroxyacetic_acid = 0
513
+        }
514
+
515
+        if( this.form.reverse_osmosis_membrane_disinfection!=""){
516
+            this.form.reverse_osmosis_membrane_disinfection= parseFloat(this.form.reverse_osmosis_membrane_disinfection) == NaN?0:parseFloat(this.form.reverse_osmosis_membrane_disinfection)
517
+        }else{
518
+            this.form.reverse_osmosis_membrane_disinfection=  0
519
+        }
520
+
521
+        if(this.form.first_disinfection_method !=""){
522
+            this.form.first_disinfection_method = parseFloat(this.form.first_disinfection_method) == NaN?0:parseFloat(this.form.first_disinfection_method)
523
+        }else{
524
+            this.form.first_disinfection_method = 0
525
+        }
526
+
527
+
528
+        if(this.form.last_disinfection_method !=""){
529
+           this.form.last_disinfection_method = parseFloat(this.form.last_disinfection_method) == NaN?0:parseFloat(this.form.last_disinfection_method)
530
+        }else{
531
+            this.form.last_disinfection_method = 0
532
+        }
533
+
534
+        if(this.form.first_disinfection_time !=""){
535
+          this.form.first_disinfection_time = parseFloat(this.form.first_disinfection_time) == NaN?0:parseFloat(this.form.first_disinfection_time)
536
+        }else{
537
+            this.form.first_disinfection_time = 0
538
+        }
539
+
540
+        if( this.form.last_disinfection_time!=""){
541
+            this.form.last_disinfection_time = parseFloat(this.form.last_disinfection_time) == NaN?0:parseFloat(this.form.last_disinfection_time)
542
+        }else{
543
+            this.form.last_disinfection_time = 0
544
+        }
545
+
546
+        if(this.form.filter_replacement!=""){
547
+            this.form.filter_replacement = parseFloat(this.form.filter_replacement) == NaN?0:parseFloat(this.form.filter_replacement)
548
+        }else{
549
+            this.form.filter_replacement= 0
550
+        }
551
+
552
+        if( this.form.admin_user_id != ""){
553
+            this.form.admin_user_id = parseFloat(this.form.admin_user_id) == NaN?0:parseFloat(this.form.admin_user_id)
554
+        }else{
555
+            this.form.admin_user_id =0
556
+        }
557
+
558
+        if(this.form.disinfection_of_water_pipeline !=""){
559
+            this.form.disinfection_of_water_pipeline = parseFloat(this.form.disinfection_of_water_pipeline) == NaN?0:parseFloat(this.form.disinfection_of_water_pipeline)
560
+        }else{
561
+            this.form.disinfection_of_water_pipeline =0
562
+        }
563
+
564
+
565
+        console.log("233223232323",this.form)
566
+         this.$refs[formName].validate((valid) => {
567
+          if (valid) {
568
+            saveWaterList(this.equimentid,this.form).then(response=>{
569
+             if(response.data.state == 1){
570
+                var deviceWater =  response.data.data.deviceWater
571
+                console.log("保存成功!",deviceWater)
572
+                this.$message.success("保存成功!")
573
+                console.log("2333333333333333333333333w",this.form.water_conductivity)
574
+                if(this.form.water_conductivity == 0){
575
+                   this.form.water_conductivity = ""
576
+                }
577
+                if(this.form.fault_description == 0){
578
+                   this.form.fault_description = ""
579
+                }
580
+
581
+                if(this.form.water_conductivity == 0){
582
+                   this.form.water_conductivity = ""
583
+                }
584
+
585
+                if(this.form.water_pressure == 0){
586
+                  this.form.water_pressure = ""
587
+                }
588
+
589
+                if(this.form.temperature == 0){
590
+                   this.form.temperature = ""
591
+                }
592
+
593
+                if(this.form.first_ro_membrane_water == 0){
594
+                   this.form.first_ro_membrane_water = ""
595
+                }
596
+
597
+                if(this.form.first_ro_film_thick_water ==0 ){
598
+                   this.form.first_ro_film_thick_water = ""
599
+                }
600
+
601
+                if(this.form.first_ro_membrane_effluent == 0){
602
+                   this.form.first_ro_membrane_effluent=""
603
+                }
604
+
605
+                if(this.form.first_production_of_water_conductivity == 0){
606
+                   this.form.first_production_of_water_conductivity = ""
607
+                }
608
+
609
+                if(this.form.first_water_yield == 0){
610
+                   this.form.first_water_yield = ""
611
+                }
612
+
613
+                if(this.form.last_ro_membrane_water == 0){
614
+                  this.form.last_ro_membrane_water= ""
615
+                }
616
+
617
+                if(this.form.last_ro_film_thick_water== 0){
618
+                   this.form.last_ro_film_thick_water = ""
619
+                }
620
+
621
+                if(this.form.last_ro_membrane_effluent == 0){
622
+                  this.form.last_ro_membrane_effluent = ""
623
+                }
624
+
625
+                if(this.form.last_production_of_water_conductivity == 0){
626
+                  this.form.last_production_of_water_conductivity = ""
627
+                }
628
+
629
+                if(this.form.last_water_yield  == 0){
630
+                  this.form.last_water_yield = ""
631
+                }
632
+
633
+                if(this.form.carbon_tank == 0){
634
+                   this.form.carbon_tank = ""
635
+                }
636
+
637
+                if(this.form.snd_tank == 0){
638
+                  this.form.snd_tank = ""
639
+                }
640
+
641
+                if(this.form.resin_tank == 0){
642
+                  this.form.resin_tank= ""
643
+                }
644
+
645
+                if(this.form.ultrafilter == 0){
646
+                   this.form.ultrafilter= ""
647
+                }
648
+
649
+                if(this.form.hardness_monitoring  ==0){
650
+                    this.form.hardness_monitoring = ""
651
+                }
652
+
653
+                if(this.form.total_chlorine_detection == 0){
654
+                  this.form.total_chlorine_detection= ""
655
+                }
656
+                if(this.form.concentration_of_peroxyacetic_acid == 0){
657
+                  this.form.concentration_of_peroxyacetic_acid = ""
658
+                }
659
+
660
+                if(this.form.reverse_osmosis_membrane_disinfection ==0){
661
+                  this.form.reverse_osmosis_membrane_disinfection = ""
662
+                }
663
+
664
+                if(this.form.disinfection_of_water_pipeline == 0){
665
+                  this.form.disinfection_of_water_pipeline= ""
666
+                }
667
+
668
+                if(this.form.first_disinfection_method == 0){
669
+                    this.form.first_disinfection_method = ""
670
+                }
671
+
672
+                if(this.form.last_disinfection_method  == 0){
673
+                    this.form.last_disinfection_method = ""
674
+                }
675
+
676
+                if(this.form.first_disinfection_time == 0){
677
+                  this.form.first_disinfection_time = ""
678
+                }
679
+
680
+                if(this.form.last_disinfection_time == 0){
681
+                  this.form.last_disinfection_time = ""
682
+                }
683
+
684
+                if(this.form.remark == 0){
685
+                  this.form.remark = ""
686
+                }
687
+
688
+                if(this.form.filter_replacement == 0){
689
+                    this.form.filter_replacement = ""
690
+                }
691
+
692
+                if(this.form.admin_user_id == 0){
693
+                   this.form.admin_user_id = ""
694
+                }
695
+
696
+
697
+
698
+
699
+                // this.$parent.toParent()
700
+
701
+             }else{
702
+                this.form.fault_description = ""
703
+                this.form.water_conductivity = ""
704
+                this.form.water_pressure = ""
705
+                this.form.temperature = ""
706
+                this.form.first_ro_membrane_water = ""
707
+                this.form.first_ro_film_thick_water = ""
708
+                this.form.first_ro_membrane_effluent=""
709
+                this.form.first_production_of_water_conductivity = ""
710
+                this.form.first_water_yield = ""
711
+                this.form.last_ro_membrane_water= ""
712
+                this.form.last_ro_film_thick_water= ""
713
+                this.form.last_ro_membrane_effluent = ""
714
+                this.form.last_production_of_water_conductivity = ""
715
+                this.form.last_water_yield = ""
716
+                this.form.carbon_tank = ""
717
+                this.form.snd_tank = ""
718
+                this.form.resin_tank= ""
719
+                this.form.ultrafilter= ""
720
+                this.form.hardness_monitoring = ""
721
+                this.form.total_chlorine_detection= ""
722
+                this.form.concentration_of_peroxyacetic_acid = ""
723
+                this.form.reverse_osmosis_membrane_disinfection = ""
724
+                this.form.disinfection_of_water_pipeline= ""
725
+                this.form.first_disinfection_method = ""
726
+                this.form.last_disinfection_method = ""
727
+                this.form.first_disinfection_time = ""
728
+                this.form.last_disinfection_time = ""
729
+                this.form.remark = ""
730
+                this.form.filter_replacement = ""
731
+             }
732
+           })
733
+
734
+          }
735
+        })
736
+       },
737
+       getAllDoctorList(){
738
+         getAllDoctorList().then(response=>{
739
+           if(response.data.state == 1){
740
+             var doctorList = response.data.data.list
741
+             console.log("dcotorlist",doctorList)
742
+             for(let i=0;i<doctorList.length;i++){
743
+            //   if(doctorList[i].user_type == 3){
744
+            //      this.nurseList.push(doctorList[i])
745
+            //   }
746
+               this.nurseList.push(doctorList[i])
747
+             }
748
+             console.log("nurseLisrt===============",this.nurseList)
749
+           }
750
+         })
751
+       },
752
+    //    limitInput (e) {
753
+    //     e.target.value = e.target.value.replace(/(^\s*)|(\s*$)/g, "");
754
+    //     const reg = /[^\d.]/g;
755
+
756
+    //     // 只能是数字和小数点,不能是其他输入
757
+    //     e.target.value = e.target.value.replace(reg, "");
758
+
759
+    //     // 保证第一位只能是数字,不能是点
760
+    //     e.target.value = e.target.value.replace(/^\./g, "");
761
+    //     // 小数只能出现1位
762
+    //     e.target.value = e.target.value
763
+    //       .replace(".", "$#$")
764
+    //       .replace(/\./g, "")
765
+    //       .replace("$#$", ".");
766
+    //     // 小数点后面保留2位
767
+    //     e.target.value = e.target.value.replace(
768
+    //       /^(\-)*(\d+)\.(\d\d).*$/,
769
+    //       "$1$2.$3"
770
+    //     );
771
+    //     }
772
+    },
773
+    created(){
774
+       this.form.admin_user_id = this.$store.getters.xt_user.user.id
775
+    //    this.form.admin_user_id = 829
776
+       this.getAllDoctorList()
777
+    },
778
+    mounted(){
779
+
780
+    }
781
+ }
782
+
783
+</script>
784
+<style scoped>
785
+.el-row {
786
+    margin-bottom: 20px;
787
+}
788
+.newMain .el-form-item__label {
789
+    width: 110px !important;
790
+}
791
+</style>

Разница между файлами не показана из-за своего большого размера
+ 1393 - 0
src/xt_pages/management/components/WaterFormList.vue


+ 294 - 0
src/xt_pages/management/components/waterFormPrint.vue Просмотреть файл

@@ -0,0 +1,294 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <el-button  size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印
6
+      </el-button>
7
+    </div>
8
+    <div class="app-container ">
9
+      <div id="dialysis-print-box">
10
+        <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
+          <div style="font-size:22px;font-weight:bold;text-align:center;margin-top:40px"></div>
12
+          <div class="order-title" style="font-size:18px;padding-top:0;">药品入库登记表</div>
13
+          <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
14
+
15
+          <table class="print-table" border="1">
16
+            <tbody>
17
+            <tr>
18
+              <td width="80">药品名称</td>
19
+              <td style="line-height:18px;" width="80">注册证号/批准文号/备案凭证号</td>
20
+              <td style="line-height:18px;" width="100">规格<br>型号</td>
21
+              <td style="line-height:18px;" width="80">生产<br>厂商</td>
22
+              <td style="line-height:18px;" width="80">经销商</td>
23
+              <td style="line-height:18px;" width="80">进货价</td>
24
+              <td style="line-height:18px;" width="80">入库<br>数量</td>
25
+              <td style="line-height:18px;" width="80">单位</td>
26
+              <td style="line-height:18px;" width="60">总价</td>
27
+              <td style="line-height:18px;" width="80">批号</td>
28
+              <td style="line-height:18px;" width="120">生产日期</td>
29
+              <td style="line-height:18px;" width="120">有效日期</td>
30
+              <td style="line-height:18px;" width="120">入库日期</td>
31
+              <td style="line-height:18px;" width="60">质检<br>意见</td>
32
+              <td style="line-height:18px;" width="60">验收<br>结论</td>
33
+            </tr>
34
+
35
+            <tr v-for="(item,i) in it.child" :key="i">
36
+              <td style="line-height: 18px">
37
+                 
38
+              </td>
39
+              <td style="line-height: 18px"></td>
40
+              <td style="line-height: 18px">
41
+                
42
+              </td>
43
+              <td style="line-height: 18px"></td>
44
+              <td style="line-height: 18px"></td>
45
+              <td style="line-height:18px">
46
+                 
47
+              </td>
48
+              <td style="line-height: 18px">
49
+                   <span></span>
50
+              </td>
51
+              <td style="line-height: 18px">
52
+                <span></span>
53
+              </td>
54
+              <td style="line-height:18px">
55
+                  <span></span>
56
+              </td>
57
+              <td style="line-height:18px"></td>
58
+              <td style="line-height:18px"></td>
59
+              <td style="line-height:18px"></td>
60
+              <td style="line-height:18px"></td>
61
+              <td style="line-height:18px"></td>
62
+              <td style="line-height:18px"></td>
63
+            </tr>
64
+            <tr>
65
+              <td>合计</td>
66
+              <td colspan="7" style="text-align:center"></td>
67
+              <td style="text-align:center">{{getAllPrince(it.id).toFixed(2)}}</td>
68
+              <td colspan="6" style="text-align:center"></td>
69
+            </tr>
70
+            </tbody>
71
+          </table>
72
+
73
+          <div style="display:flex;margin-top:1px;float:right;" v-if="orgId == 10024">
74
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
75
+            <div style="width:50px;">会计:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
76
+            <div style="width:50px;">审核:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
77
+            <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(it.creater) }}</div>
78
+          </div>
79
+          <div style="display:flex;margin-top:1px;float:right;" v-if="orgId !=10024">
80
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
81
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
82
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
83
+            <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(it.creater) }}</div>
84
+          </div>
85
+        </div>
86
+
87
+      </div>
88
+
89
+    </div>
90
+  </div>
91
+
92
+</template>
93
+
94
+<script>
95
+  import { GetAllConfig,getPrintStockGood } from '@/api/stock'
96
+  import { getDataConfig } from '@/utils/data'
97
+  import { jsGetAge, uParseTime } from '@/utils/tools'
98
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
99
+  import print from 'print-js'
100
+  import {getDrugWarehouseInfoList,getDrugOrderInPrint} from "@/api/drug/drug_stock";
101
+  import {getBaseDrugLibList} from '@/api/data'
102
+
103
+  export default {
104
+    name: 'dialysisPrintOrder',
105
+    components: {
106
+      BreadCrumb
107
+
108
+    },
109
+    data() {
110
+      return {
111
+        crumbs: [
112
+          { path: false, name: '维修列表' },
113
+          { path: false, name: '打印单' }
114
+        ],
115
+        tableList:[]
116
+      }
117
+    },
118
+    methods: {
119
+       getTime(val) {
120
+         if(val < 0){
121
+           return ""
122
+         }
123
+         if(val == ""){
124
+          return ""
125
+         }else {
126
+          return uParseTime(val, '{y}-{m}-{d}')
127
+         }
128
+      },
129
+      printThisPage(){
130
+        
131
+      }
132
+    },
133
+    created() {
134
+          
135
+   
136
+
137
+    }
138
+
139
+  }
140
+</script>
141
+
142
+<style>
143
+  .dialysis-print-order {
144
+    width: 960px;
145
+    margin: 0 auto
146
+  }
147
+
148
+  .dialysis-print-order .order-yy-name {
149
+    margin: auto;
150
+    text-align: center;
151
+    font-size: 20px;
152
+    letter-spacing: 5px;
153
+  }
154
+
155
+  .dialysis-print-order .order-title {
156
+    margin: auto;
157
+    font-weight: 600;
158
+    text-align: center;
159
+    font-size: 22px;
160
+    padding: 10px 20px 20px 20px;
161
+  }
162
+
163
+  .dialysis-print-order .table-box {
164
+
165
+    width: 100%;
166
+    line-height: 23px;
167
+    font-size: 14px;
168
+  }
169
+
170
+  .dialysis-print-order .print-table {
171
+    width: 100%;
172
+    text-align: center;
173
+    border-collapse: collapse;
174
+    line-height: 40px;
175
+    font-size: 14px;
176
+  }
177
+
178
+  .dialysis-print-order .print-table-no {
179
+    width: 100%;
180
+    text-align: center;
181
+    border-collapse: collapse;
182
+    font-size: 14px;
183
+  }
184
+
185
+  .dialysis-print-order .under-line {
186
+    border-bottom: 1px solid #999;
187
+    width: 95%;
188
+    text-align: center;
189
+    margin-left: 2px;
190
+
191
+
192
+  }
193
+
194
+  .dialysis-print-order .title-box {
195
+    text-align: center;
196
+    font-size: 16px;
197
+  }
198
+
199
+  .dialysis-print-order .radio-lebel-box {
200
+    font-weight: 400;
201
+    cursor: pointer;
202
+  }
203
+
204
+  .dialysis-print-order .radio-no {
205
+    opacity: 0;
206
+    outline: none;
207
+    position: absolute;
208
+    margin: 0;
209
+    width: 0;
210
+    height: 0;
211
+    z-index: -1;
212
+  }
213
+
214
+  .dialysis-print-order .radio-inner {
215
+    white-space: nowrap;
216
+    cursor: pointer;
217
+    outline: none;
218
+    display: inline-block;
219
+    line-height: 1;
220
+    position: relative;
221
+    vertical-align: middle;
222
+  }
223
+
224
+  .dialysis-print-order .radio-fang {
225
+    display: inline-block;
226
+    position: relative;
227
+    border: 1px solid #000;
228
+    box-sizing: border-box;
229
+    width: 14px;
230
+    height: 14px;
231
+    background-color: #fff;
232
+    z-index: 1;
233
+    transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46);
234
+  }
235
+
236
+  .dialysis-print-order .is-checked-radio::after {
237
+    content: "√";
238
+    font-size: 15px;
239
+  }
240
+
241
+
242
+  .dialysis-print-order .print-table-no tr td {
243
+    padding: 8px 5px;
244
+    line-height: 25px;
245
+  }
246
+
247
+  .dialysis-print-order .print-table tr td {
248
+    padding: 1px 1px;
249
+    /*line-height: 25px;*/
250
+  }
251
+
252
+  .es-img {
253
+    height: 25px;
254
+  }
255
+
256
+  .advice-name {
257
+    text-align: left;
258
+  }
259
+
260
+  .advice-children {
261
+    display: flex;
262
+  }
263
+
264
+  .title-box-pro {
265
+    border: 0 #fff;
266
+    line-height: 25px;
267
+    height: 25px;
268
+    text-align: left;
269
+    padding-left: 10px !important;
270
+  }
271
+
272
+  .title-box-pro-tr {
273
+    border: 0 #fff;
274
+  }
275
+
276
+  .text-align-left {
277
+    text-align: left !important;
278
+    padding-left: 10px !important;
279
+    font-size: 14px !important;
280
+    line-height: 25px;
281
+  }
282
+
283
+  .print-table-tr-new td {
284
+    line-height: 20px !important;
285
+  }
286
+
287
+  .border-top-solid {
288
+    border: solid 1px #000;
289
+  }
290
+
291
+  .print-template-two tr {
292
+    line-height: 30px;
293
+  }
294
+</style>

+ 259 - 137
src/xt_pages/management/home.vue Просмотреть файл

@@ -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">
@@ -949,12 +964,12 @@
949 964
                                      <el-form-item label="班次:" required prop="classtype" class="st">
950 965
                                        <el-select v-model="userform.classtype" placeholder="请选择" style="width:150px">
951 966
                                            <el-option
952
-                                            v-for="item in classType"
953
-                                           :key="item.id"
954
-                                           :label="item.name"
955
-                                           :value="item.id"
956
-                                           style="width:90px">
957
-                                       </el-option>
967
+                                              v-for="item in classType"
968
+                                              :key="item.id"
969
+                                              :label="item.name"
970
+                                              :value="item.id"
971
+                                              style="width:90px">
972
+                                           </el-option>
958 973
                                         </el-select>
959 974
                                      </el-form-item>
960 975
                                   </el-col>
@@ -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">
@@ -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="childFive" :userdata="userdata" v-if="device_type == 1"></user-form>
1372
+                             <water-form-list ref="childSix" v-if="device_type == 2" :equimentid="equimentid"></water-form-list>
1354 1373
                            </el-tab-pane>
1355 1374
                        </el-tabs>
1356 1375
                      </div>
@@ -1363,7 +1382,7 @@
1363 1382
                       <div v-show="zhiShow">
1364 1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1365 1384
                          <el-tab-pane label="新增质量控制" name="first">
1366
-  
1385
+
1367 1386
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1368 1387
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1369 1388
                              <el-row>
@@ -1560,7 +1579,7 @@
1560 1579
                                     </el-date-picker>
1561 1580
                                   </el-form-item>
1562 1581
                                 </el-col>
1563
-                               
1582
+
1564 1583
                                 <el-col :span="8">
1565 1584
                                   <el-form-item label="顺序号:" required prop="sort">
1566 1585
                                      <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
@@ -1613,9 +1632,9 @@
1613 1632
                               </el-row>
1614 1633
                             </el-form>
1615 1634
                             <el-divider></el-divider>
1616
-                           
1617 1635
 
1618
-                          
1636
+
1637
+
1619 1638
                           <div v-if="device_type == 1">
1620 1639
                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1621 1640
                             <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
@@ -1670,9 +1689,9 @@
1670 1689
                                         </el-date-picker>
1671 1690
                                     </el-form-item>
1672 1691
                                 </el-col>
1673
-                                
1692
+
1674 1693
                               </el-row>
1675
-                            
1694
+
1676 1695
                               <el-row>
1677 1696
                                 <el-col :span="8">
1678 1697
                                   <!-- <span>Na<sup>+</sup></span> -->
@@ -1772,11 +1791,11 @@
1772 1791
 
1773 1792
 
1774 1793
 
1775
-                           
1794
+
1776 1795
                             <el-divider></el-divider>
1777
-                         </div>     
1778
-                             
1779
-                        
1796
+                         </div>
1797
+
1798
+
1780 1799
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1781 1800
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1782 1801
                               <el-row>
@@ -1847,7 +1866,7 @@
1847 1866
                                     </el-date-picker>
1848 1867
                                   </el-form-item>
1849 1868
                                 </el-col>
1850
-                               
1869
+
1851 1870
                                 <el-col :span="8">
1852 1871
                                   <el-form-item label="顺序号:" required prop="sort">
1853 1872
                                      <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
@@ -1974,7 +1993,7 @@
1974 1993
                                     </el-date-picker>
1975 1994
                                   </el-form-item>
1976 1995
                                 </el-col>
1977
-                               
1996
+
1978 1997
                                 <el-col :span="8">
1979 1998
                                   <el-form-item label="顺序号:" required prop="sort">
1980 1999
                                      <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
@@ -2027,7 +2046,7 @@
2027 2046
                               </el-row>
2028 2047
                             </el-form>
2029 2048
                             <el-divider></el-divider>
2030
-                            
2049
+
2031 2050
 
2032 2051
 
2033 2052
 
@@ -2101,7 +2120,7 @@
2101 2120
                                       </el-date-picker>
2102 2121
                                     </el-form-item>
2103 2122
                                   </el-col>
2104
-                                
2123
+
2105 2124
                                   <el-col :span="8">
2106 2125
                                     <el-form-item label="顺序号:" required prop="sort">
2107 2126
                                       <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
@@ -2155,8 +2174,8 @@
2155 2174
                               </el-form>
2156 2175
                             <el-divider></el-divider>
2157 2176
 
2158
-                           
2159
-                           
2177
+
2178
+
2160 2179
                             <span style="margin-bottom: 20px;display: block;">PH值检测</span>
2161 2180
                             <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
2162 2181
                               <el-row>
@@ -2227,7 +2246,7 @@
2227 2246
                                     </el-date-picker>
2228 2247
                                   </el-form-item>
2229 2248
                                 </el-col>
2230
-                               
2249
+
2231 2250
                                 <el-col :span="8">
2232 2251
                                   <el-form-item label="顺序号:" required prop="sort">
2233 2252
                                      <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
@@ -2283,7 +2302,7 @@
2283 2302
 
2284 2303
 
2285 2304
 
2286
-                          
2305
+
2287 2306
 
2288 2307
                          </el-tab-pane>
2289 2308
 
@@ -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">
@@ -2331,7 +2351,7 @@
2331 2351
                              <el-row>
2332 2352
                                  <el-col :span="8">
2333 2353
                                   <el-form-item label="到达时间:">
2334
-                                   
2354
+
2335 2355
                                          <el-date-picker
2336 2356
                                           type="datetime"
2337 2357
                                           format="yyyy-MM-dd HH:mm"
@@ -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 {
@@ -2784,7 +2848,7 @@ export default {
2784 2848
           device_name: [{ required: true, message: '请填写序列号' }],
2785 2849
           devicetype: [{ required: true, message: '请填写设备类型' }],
2786 2850
           unit_type: [{ required: true, message: '请填写设备型号' }],
2787
-        
2851
+
2788 2852
         },
2789 2853
         qualitRules: {
2790 2854
           detection_unit: [{ required: true, message: '请填写检测单位' }],
@@ -2804,7 +2868,7 @@ export default {
2804 2868
         },
2805 2869
         repirRules: {
2806 2870
           guarantee_date: [{ required: true, message: '请填写保修日期' }],
2807
-          fault_description: [{ required: true, message: '请填写故障描述' }]
2871
+          fault_description: [{ required: true, message: '请填写故障描述', trigger: ['blur', 'change']}]
2808 2872
         },
2809 2873
         ruleThree: {
2810 2874
           detection_unit: [{ required: true, message: '请填写检测单位' }],
@@ -2821,12 +2885,12 @@ export default {
2821 2885
           patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
2822 2886
           disinfect_type: [{ required: true, message: '请填写消毒方式' }],
2823 2887
           disinfectant_type: [{ required: true, message: '请填写消毒液' }],
2824
-          disinfection: [{ required: true, message: '请填写消毒状态' }],
2888
+          disinfection: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
2825 2889
           fluid_path: [{ required: true, message: '请填写消毒方式' }],
2826 2890
           disinfectant: [{ required: true, message: '请填写消毒液' }],
2827
-          disinfection_status: [{ required: true, message: '消毒状态' }],
2828
-          sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
2829
-          classtype: [{ required: true, message: '请填写班次' }],
2891
+          disinfection_status: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
2892
+          sign_name: [{ required: true, message: '请填写签名', trigger: ['blur','change'] }],
2893
+          classtype: [{ required: true, message: '请填写班次', trigger: ['blur','change']  }],
2830 2894
           reporting_date:[{required:true,message:"请填写出报告日期"}]
2831 2895
         },
2832 2896
         planRules: {
@@ -2889,7 +2953,7 @@ export default {
2889 2953
           { id: 7, name: '周日' }
2890 2954
         ],
2891 2955
         classType: [
2892
-          { id: 0, name: '请选择' },
2956
+          // { id: 0, name: '请选择' },
2893 2957
           { id: 1, name: '上午' },
2894 2958
           { id: 2, name: '下午' },
2895 2959
           { id: 3, name: '晚上' }
@@ -3029,7 +3093,7 @@ export default {
3029 3093
           { id:29, name:"PE"},
3030 3094
         ],
3031 3095
         disinfection: [
3032
-          { id: 0, name: '请选择' },
3096
+          // { id: 0, name: '请选择' },
3033 3097
           { id: 1, name: '已消毒' },
3034 3098
           { id: 2, name: '未消毒' },
3035 3099
           { id: 3, name: '消毒未完成' }
@@ -3185,7 +3249,10 @@ export default {
3185 3249
           exclude: '',
3186 3250
           reason: '',
3187 3251
           code_information: '',
3188
-          imageName: ''
3252
+          imageName: '',
3253
+          function_accessories_inspection:"",
3254
+          other_information:'',
3255
+          admin_user_id:this.$store.getters.xt_user.user.id,
3189 3256
         },
3190 3257
 
3191 3258
         filename: '',
@@ -3316,11 +3383,15 @@ export default {
3316 3383
         this.getAllMachine()
3317 3384
       },
3318 3385
       changeDeviceId(val) {
3386
+       
3319 3387
         if (val === 1) {
3320 3388
           this.zoneDisabled = false
3321 3389
         } else {
3322 3390
           this.zoneDisabled = true
3323 3391
         }
3392
+        if(val == 0){
3393
+          this.zoneDisabled = false
3394
+        }
3324 3395
         this.forms.device_type = val
3325 3396
         this.getAllMachine()
3326 3397
       },
@@ -3349,7 +3420,7 @@ export default {
3349 3420
               }
3350 3421
 
3351 3422
             }
3352
-            
3423
+
3353 3424
           }
3354 3425
         })
3355 3426
       },
@@ -3357,7 +3428,7 @@ export default {
3357 3428
         this.tabIndex = index
3358 3429
       },
3359 3430
       handleCurrentChange(val) {
3360
-        console.log("val-------------------------",val)
3431
+        console.log("val3223323223",val)
3361 3432
         // 通过设备型号区分质量控制
3362 3433
         this.device_type = val.device_type
3363 3434
         this.unitType = val.unit_type
@@ -3375,6 +3446,14 @@ export default {
3375 3446
         this.GetUserTotalCount(val.bed_id)
3376 3447
         this.getTimeBeteen(val.id)
3377 3448
         this.getData(val.bed_id)
3449
+        if(val.device_type == 2){
3450
+          this.$refs.childSix.getlist()
3451
+        }
3452
+       
3453
+      },
3454
+      toParent(){
3455
+        console.log("处方23322332")
3456
+        this.$refs.childSix.getlist()
3378 3457
       },
3379 3458
       getAutoData(id) {
3380 3459
         getAutoData(id).then(response => {
@@ -3388,16 +3467,16 @@ export default {
3388 3467
           if (response.data.state === 1) {
3389 3468
             var addmacher = response.data.data.addmacher
3390 3469
             var warning = response.data.data.warning
3391
-          
3470
+
3392 3471
             var time = this.getTimestamp(this.userform.date) - warning.stime
3393 3472
             var germ = response.data.data.germ
3394
-          
3473
+
3395 3474
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
3396
-           
3475
+
3397 3476
             var clean = response.data.data.clean
3398 3477
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
3399 3478
             var number = response.data.data.number
3400
-          
3479
+
3401 3480
             this.Number = number
3402 3481
             if (addmacher.device_type === 1) {
3403 3482
               this.sShow = false
@@ -3438,7 +3517,7 @@ export default {
3438 3517
             var zone = response.data.data.zone
3439 3518
 
3440 3519
             const arr1 = []
3441
-          
3520
+
3442 3521
             for (let index = 0; index < mode.length; index++) {
3443 3522
               if (mode[index].treate_mode === 1) {
3444 3523
                 mode[index] = 'HD'
@@ -3527,7 +3606,7 @@ export default {
3527 3606
             this.form.machine_status = addmacher.machine_status
3528 3607
             this.form.user_total = addmacher.user_total
3529 3608
             this.form.remarks = addmacher.remarks
3530
-           
3609
+
3531 3610
             if (addmacher.rubbish_date !== 0) {
3532 3611
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
3533 3612
             }
@@ -3634,16 +3713,16 @@ export default {
3634 3713
         var bed_numberss = parseInt(bed_numbers)
3635 3714
         this.form.bed_number = bed_numberss
3636 3715
         this.$refs[formName].validate(valid => {
3637
-          UpdateMachineInfo(this.form).then(response => {         
3716
+          UpdateMachineInfo(this.form).then(response => {
3638 3717
             if (response.data.state === 1) {
3639
-              var addmacher = response.data.data.addmacher         
3640
-              this.$message.success('修改成功')           
3718
+              var addmacher = response.data.data.addmacher
3719
+              this.$message.success('修改成功')
3641 3720
               for (let i = 0; i < this.tableDatatwo.length; i++) {
3642 3721
                 if (this.tableDatatwo[i].id == addmacher.id) {
3643 3722
                   for (let j = 0; j < this.deviceMode.length; j++) {
3644 3723
                     if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3645 3724
                       addmacher.device_mode = this.deviceMode[j].device_mode
3646
-                    
3725
+
3647 3726
                     }
3648 3727
                   }
3649 3728
 
@@ -4304,7 +4383,7 @@ export default {
4304 4383
             }
4305 4384
             this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
4306 4385
             this.userform.patient_name = patients.name
4307
-            this.userform.patient_id = patients.patient_id 
4386
+            this.userform.patient_id = patients.patient_id
4308 4387
             var zone = response.data.data.zone
4309 4388
             this.userform.zone = zone.id
4310 4389
             var number = response.data.data.number
@@ -4336,13 +4415,17 @@ export default {
4336 4415
       },
4337 4416
 
4338 4417
       SaveInformation(formName) {
4339
-        if (this.userform.classtype === '') {
4340
-          this.userform.classtype = 0
4418
+        // if (this.userform.classtype === '') {
4419
+        //   this.userform.classtype = 0
4420
+        // }
4421
+        console.log("form233232322323",this.userform.classtype)
4422
+        if(this.userform.classtype!=""){
4423
+          var classtypes = this.userform.classtype
4424
+          var classtype = parseInt(classtypes)
4425
+          this.userform.classtype = classtype
4341 4426
         }
4342
-        var classtypes = this.userform.classtype
4343
-        var classtype = parseInt(classtypes)
4344
-        this.userform.classtype = classtype
4345
-
4427
+     
4428
+        
4346 4429
         var zone = this.userform.zone
4347 4430
         var zones = parseInt(zone)
4348 4431
         this.userform.zone = zones
@@ -4409,22 +4492,22 @@ export default {
4409 4492
         }
4410 4493
 
4411 4494
         // eslint-disable-next-line eqeqeq
4412
-        if (this.userform.start_time == '') {
4413
-          this.userform.start_time = '0'
4414
-        }
4415
-        // eslint-disable-next-line eqeqeq
4416
-        if (this.userform.end_time == '') {
4417
-          this.userform.end_time = '0'
4418
-        }
4495
+        // if (this.userform.start_time == '') {
4496
+        //   this.userform.start_time = '0'
4497
+        // }
4498
+        // // eslint-disable-next-line eqeqeq
4499
+        // if (this.userform.end_time == '') {
4500
+        //   this.userform.end_time = '0'
4501
+        // }
4419 4502
 
4420
-        // eslint-disable-next-line eqeqeq
4421
-        if (this.userform.starttime == '') {
4422
-          this.userform.starttime = '0'
4423
-        }
4424
-        // eslint-disable-next-line eqeqeq
4425
-        if (this.userform.endtime == '') {
4426
-          this.userform.endtime = '0'
4427
-        }
4503
+        // // eslint-disable-next-line eqeqeq
4504
+        // if (this.userform.starttime == '') {
4505
+        //   this.userform.starttime = '0'
4506
+        // }
4507
+        // // eslint-disable-next-line eqeqeq
4508
+        // if (this.userform.endtime == '') {
4509
+        //   this.userform.endtime = '0'
4510
+        // }
4428 4511
 
4429 4512
         if (this.userform.hyperfiltratio === '') {
4430 4513
           this.userform.hyperfiltratio = 0
@@ -4449,7 +4532,7 @@ export default {
4449 4532
         this.userform.user_total = parseInt(this.userform.user_total)
4450 4533
 
4451 4534
         console.log("user_form",this.userform)
4452
-      
4535
+
4453 4536
         this.$refs[formName].validate((valid) => {
4454 4537
           if (valid) {
4455 4538
             SaveInformation(this.equimentid, this.userform).then(response => {
@@ -4462,7 +4545,7 @@ export default {
4462 4545
                 this.userform.starttime = ''
4463 4546
                 this.userform.endtime = ''
4464 4547
                 this.userform.date = ''
4465
-                this.userform.classtype = ''
4548
+                // this.userform.classtype = ''
4466 4549
                 this.userform.zone = ''
4467 4550
                 this.userform.patient_name = ''
4468 4551
                 this.userform.sign_name = ''
@@ -4503,16 +4586,26 @@ export default {
4503 4586
             } else {
4504 4587
               this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
4505 4588
             }
4506
-
4507
-            this.userform.classtype = information.class
4589
+            
4590
+            this.userform.classtype = information.class?information.class:""
4508 4591
             this.userform.zone = information.zone
4509 4592
             this.userform.bed_number = information.bed_number
4510 4593
             this.userform.patient_name = information.name
4511 4594
             this.userform.patient_id = information.patient_id
4512 4595
             this.userform.contagion = information.contagion
4513 4596
             this.userform.dialysis_mode = information.dialysis_mode
4514
-            this.userform.start_time = this.updateTimes(information.start_time)
4515
-            this.userform.end_time = this.updateTimes(information.end_time)
4597
+            if(information.start_time > 0){
4598
+              this.userform.start_time = this.updateTimes(information.start_time)
4599
+            }else{
4600
+              this.userform.start_time =  ""
4601
+            }
4602
+            if(information.end_time >0){
4603
+              this.userform.end_time = this.updateTimes(information.end_time)
4604
+            }else{
4605
+              this.userform.end_time = ""
4606
+            }
4607
+          
4608
+           
4516 4609
             // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
4517 4610
             if (information.hyperfiltratio === '') {
4518 4611
               this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
@@ -4541,15 +4634,36 @@ export default {
4541 4634
             this.userform.fault_description = information.fault_description
4542 4635
             this.userform.code_information = information.code_information
4543 4636
             this.userform.disinfect_type = information.disinfect_type
4544
-            this.userform.disinfection = information.disinfection
4637
+            if(information.disinfection == 0){
4638
+              this.userform.disinfection = ""
4639
+            }else{
4640
+              this.userform.disinfection = information.disinfection
4641
+            }
4642
+           
4545 4643
             this.userform.machine_run = information.machine_run
4546 4644
             this.userform.fluid_path = information.fluid_path
4547 4645
             this.userform.disinfectant = information.disinfectant
4548
-            this.userform.disinfection_status = information.disinfection_status
4646
+            if(information.disinfection_status == 0){
4647
+               this.userform.disinfection_status = ""
4648
+            }else{
4649
+              this.userform.disinfection_status = information.disinfection_status
4650
+            }
4651
+           
4549 4652
             this.userform.disinfection_residue = information.disinfection_residue
4550 4653
             this.userform.longtime = information.long_time
4551
-            this.userform.starttime = this.updateTimes(information.disinfec_startime)
4552
-            this.userform.endtime = this.updateTimes(information.disinfec_endtime)
4654
+            if(information.disinfec_startime >0){
4655
+              this.userform.starttime = this.updateTimes(information.disinfec_startime)
4656
+            }else{
4657
+              this.userform.starttime= ""
4658
+            }
4659
+
4660
+            if(information.disinfec_endtime >0){
4661
+              this.userform.endtime = this.updateTimes(information.disinfec_endtime)
4662
+            }else{
4663
+              this.userform.endtime = ""
4664
+            }
4665
+           
4666
+           
4553 4667
 
4554 4668
             if (information.dialysis_checked === 1) {
4555 4669
               this.userform.dialysis_checked = true
@@ -4629,16 +4743,16 @@ export default {
4629 4743
         var samplinglocationa = this.qualityForm.sampling_locationa
4630 4744
         var samplinglocationas = parseInt(samplinglocationa)
4631 4745
         this.qualityForm.sampling_locationa = samplinglocationas
4632
-        
4746
+
4633 4747
         //  if(this.qualityForm.pass_examination!=''){
4634 4748
         //    this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
4635 4749
         //  }
4636 4750
          if(this.qualityForm.modifications!=''){
4637 4751
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4638 4752
          }
4639
-       
4753
+
4640 4754
         console.log("3333333",this.qualityForm)
4641
-       
4755
+
4642 4756
         this.$refs[formName].validate(response => {
4643 4757
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
4644 4758
             if (response.data.state === 1) {
@@ -4666,7 +4780,7 @@ export default {
4666 4780
         this.qualityForm.detection_result = ''
4667 4781
       },
4668 4782
       SaveLincomycin(formName) {
4669
-       
4783
+
4670 4784
         this.$refs[formName].validate((valid) => {
4671 4785
           if (this.qualityFormTwo.specimenb === '') {
4672 4786
             this.qualityFormTwo.specimenb = 0
@@ -4682,13 +4796,13 @@ export default {
4682 4796
           var sampling = this.qualityFormTwo.sampling_locationb
4683 4797
           var samplings = parseInt(sampling)
4684 4798
           this.qualityFormTwo.sampling_locationb = samplings
4685
-           
4686
-       
4799
+
4800
+
4687 4801
           if(this.qualityFormTwo.modifications!=''){
4688 4802
             this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
4689 4803
           }
4690
-       
4691
-      
4804
+
4805
+
4692 4806
           if (valid) {
4693 4807
             SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
4694 4808
               if (response.data.state === 1) {
@@ -4700,8 +4814,8 @@ export default {
4700 4814
                 this.qualityFormTwo.concentrateb_nod = ''
4701 4815
                 this.qualityFormTwo.sampling_locationb = ''
4702 4816
                 this.qualityFormTwo.detection_resultb = ''
4703
-               
4704
-              
4817
+
4818
+
4705 4819
                 this.$refs.mychild.getAllQulityInfo()
4706 4820
               }
4707 4821
             })
@@ -4720,11 +4834,11 @@ export default {
4720 4834
       SaveQualityControl(formName) {
4721 4835
         this.$refs[formName].validate((valid) => {
4722 4836
           if (valid) {
4723
-             
4837
+
4724 4838
               if(this.qualityFormThree.modifications!=''){
4725 4839
                 this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
4726 4840
               }
4727
-            
4841
+
4728 4842
             SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
4729 4843
               if (response.data.state === 1) {
4730 4844
                 var ion = response.data.data.ion
@@ -4883,6 +4997,8 @@ export default {
4883 4997
                 this.guaForm.exclude = 0
4884 4998
                 this.guaForm.images = ''
4885 4999
                 this.guaForm.treatment_process = ''
5000
+                this.guaForm.function_accessories_inspection= ""
5001
+                this.guaForm.other_information= ""
4886 5002
                 this.classShow = false
4887 5003
                 this.guaForm.imageName = ''
4888 5004
               }
@@ -4949,7 +5065,7 @@ export default {
4949 5065
             if (total === '') {
4950 5066
               this.userform.user_total = ''
4951 5067
             }
4952
-            this.userform.user_total = total
5068
+            // this.userform.user_total = total
4953 5069
           } else {
4954 5070
             this.$message.error('数据返回失败')
4955 5071
           }
@@ -4972,7 +5088,7 @@ export default {
4972 5088
             var deviceInformation = response.data.data.deviceInformation
4973 5089
             var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
4974 5090
             var clean = response.data.data.clean
4975
-          
5091
+
4976 5092
           }
4977 5093
         })
4978 5094
       },
@@ -4981,8 +5097,9 @@ export default {
4981 5097
         getTimeBeteen(id, todayTime).then(response => {
4982 5098
           if (response.data.state === 1) {
4983 5099
             var timedata = response.data.data.timeData
5100
+            // console.log("timedata----------------------",timedata)
4984 5101
             if (timedata.length === 0) {
4985
-              this.warnShow = true
5102
+              this.warnShow = false
4986 5103
             }
4987 5104
             if (timedata.length !== 0) {
4988 5105
               this.warnShow = false
@@ -5074,11 +5191,11 @@ export default {
5074 5191
          GetUserTotalCount(bedid).then(response=>{
5075 5192
             if(response.data.state == 1){
5076 5193
               var count =  response.data.data.count
5077
-              var addmacher = response.data.data.addmacher 
5194
+              var addmacher = response.data.data.addmacher
5078 5195
               if(addmacher.user_total == ''){
5079 5196
                   addmacher.user_total = 0
5080
-              }   
5081
-              this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5197
+              }
5198
+              // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5082 5199
             }
5083 5200
          })
5084 5201
        },
@@ -5100,12 +5217,12 @@ export default {
5100 5217
           var sampling = this.qualityFormFour.sampling_locationb
5101 5218
           var samplings = parseInt(sampling)
5102 5219
           this.qualityFormFour.sampling_locationb = samplings
5103
-           
5104
-        
5220
+
5221
+
5105 5222
           if(this.qualityFormFour.modifications!=''){
5106 5223
             this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
5107 5224
           }
5108
-       
5225
+
5109 5226
           if (valid) {
5110 5227
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5111 5228
               if (response.data.state === 1) {
@@ -5116,10 +5233,10 @@ export default {
5116 5233
                 this.qualityFormFour.concentrate_noc = ''
5117 5234
                 this.qualityFormFour.concentrateb_nod = ''
5118 5235
                 this.qualityFormFour.sampling_locationb = ''
5119
-             
5236
+
5120 5237
                 this.qualityFormFour.detection_resultb = ''
5121
-                
5122
-              
5238
+
5239
+
5123 5240
                 this.$refs.mychild.getAllQulityInfo()
5124 5241
               }
5125 5242
             })
@@ -5144,12 +5261,12 @@ export default {
5144 5261
           var sampling = this.qualityFormFive.sampling_locationb
5145 5262
           var samplings = parseInt(sampling)
5146 5263
           this.qualityFormFive.sampling_locationb = samplings
5147
-           
5148
-        
5264
+
5265
+
5149 5266
           if(this.qualityFormFive.modifications!=''){
5150 5267
             this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
5151 5268
           }
5152
-       
5269
+
5153 5270
           if (valid) {
5154 5271
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5155 5272
               if (response.data.state === 1) {
@@ -5161,8 +5278,8 @@ export default {
5161 5278
                 this.qualityFormFive.concentrateb_nod = ''
5162 5279
                 this.qualityFormFive.sampling_locationb = ''
5163 5280
                 this.qualityFormFive.detection_resultb = ''
5164
-               
5165
-              
5281
+
5282
+
5166 5283
                 this.$refs.mychild.getAllQulityInfo()
5167 5284
               }
5168 5285
             })
@@ -5187,12 +5304,12 @@ export default {
5187 5304
           var sampling = this.qualityFormSix.sampling_locationb
5188 5305
           var samplings = parseInt(sampling)
5189 5306
           this.qualityFormSix.sampling_locationb = samplings
5190
-           
5191
-       
5307
+
5308
+
5192 5309
           if(this.qualityFormSix.modifications!=''){
5193 5310
             this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
5194 5311
           }
5195
-       
5312
+
5196 5313
           if (valid) {
5197 5314
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5198 5315
               if (response.data.state === 1) {
@@ -5204,8 +5321,8 @@ export default {
5204 5321
                 this.qualityFormSix.concentrateb_nod = ''
5205 5322
                 this.qualityFormSix.sampling_locationb = ''
5206 5323
                 this.qualityFormSix.detection_resultb = ''
5207
-             
5208
-              
5324
+
5325
+
5209 5326
                 this.$refs.child.getAllQulityInfo()
5210 5327
               }else{
5211 5328
                 this.qualityFormSix.pass_examination = "1"
@@ -5232,12 +5349,12 @@ export default {
5232 5349
           var sampling = this.qualityFormSeven.sampling_locationb
5233 5350
           var samplings = parseInt(sampling)
5234 5351
           this.qualityFormSeven.sampling_locationb = samplings
5235
-           
5236
-       
5352
+
5353
+
5237 5354
           if(this.qualityFormSeven.modifications!=''){
5238 5355
             this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
5239 5356
           }
5240
-       
5357
+
5241 5358
           if (valid) {
5242 5359
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5243 5360
               if (response.data.state === 1) {
@@ -5249,8 +5366,8 @@ export default {
5249 5366
                 this.qualityFormSeven.concentrateb_nod = ''
5250 5367
                 this.qualityFormSeven.sampling_locationb = ''
5251 5368
                 this.qualityFormSeven.detection_resultb = ''
5252
-              
5253
-              
5369
+
5370
+
5254 5371
                 this.$refs.mychild.getAllQulityInfo()
5255 5372
               }
5256 5373
             })
@@ -5272,7 +5389,7 @@ export default {
5272 5389
       this.getAllpatient()
5273 5390
       this.getAllMode()
5274 5391
       this.GetUserTotalCount(bedid)
5275
-      
5392
+
5276 5393
 
5277 5394
   }
5278 5395
   }
@@ -5337,9 +5454,16 @@ export default {
5337 5454
        margin-bottom: 10px;
5338 5455
     margin-left: 82%
5339 5456
   }
5457
+  .el-form-item__error {
5458
+    margin-left: 130px;
5459
+    
5460
+  }
5340 5461
 
5341 5462
 </style>
5342 5463
 <style lang="scss">
5464
+    .el-form-item__error {
5465
+      left:103px !important;
5466
+    }
5343 5467
    .a{
5344 5468
      margin-bottom: 10px;
5345 5469
       margin-top: 6px;
@@ -5382,9 +5506,7 @@ export default {
5382 5506
   //   width: 130px;
5383 5507
   //   font-size: 14px;
5384 5508
   // }
5385
-  .el-form-item__error {
5386
-    margin-left: 130px;
5387
-  }
5509
+  
5388 5510
 
5389 5511
  .el-upload-list__item-name {
5390 5512
     color: #606266;

+ 1 - 1
src/xt_pages/outpatientCharges/components/chargeDialog.vue Просмотреть файл

@@ -349,7 +349,7 @@
349 349
         //初始化
350 350
         this.form.tmp_decimal = 0
351 351
         this.tmp_pay = 0
352
-        this.id = id
352
+        this.id =id
353 353
         this.form.dec_way = false
354 354
         this.updateconfig()
355 355
         this.form.total = total

+ 12 - 39
src/xt_pages/outpatientCharges/components/registerDialog.vue Просмотреть файл

@@ -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 Просмотреть файл

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

Разница между файлами не показана из-за своего большого размера
+ 1112 - 0
src/xt_pages/user/Physicalexamination.vue


+ 617 - 6
src/xt_pages/user/courseOfDisease.vue Просмотреть файл

@@ -37,7 +37,7 @@
37 37
         </div>
38 38
         <div class="record">
39 39
           <el-row :gutter="15">
40
-            <el-col :span="10">
40
+            <el-col :span="9">
41 41
               <el-table :header-cell-style="{
42 42
                   backgroundColor: 'rgb(245, 247, 250)',
43 43
                   color: '#606266'
@@ -48,7 +48,10 @@
48 48
                         :row-class-name="tableRow"
49 49
                         @row-click="onRowClick"
50 50
               >
51
-                <el-table-column type="selection" width="40" align="center"></el-table-column>
51
+                <el-table-column
52
+                  type="selection"
53
+                  width="55">
54
+                </el-table-column>
52 55
                 <el-table-column label="病程标题" align="center">
53 56
                   <template slot-scope="scope">
54 57
                     {{ scope.row.title}}
@@ -66,13 +69,609 @@
66 69
                 </el-table-column>
67 70
               </el-table>
68 71
             </el-col>
69
-            <el-col :span="14">
72
+            <el-col :span="15">
70 73
               <div class="record_content_panel">
71 74
                 <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
72
-                <div class="content">
73
-                  <span v-if="current_select_record" v-html="current_select_record.content">{{current_select_record.content }}</span>
75
+                <!--v-html="current_select_record.content"-->
76
+                <!-- <div class="content">
77
+                  <span v-if="current_select_record" >{{current_select_record.content }}</span>
74 78
                   <span v-else></span>
75
-                </div>
79
+                </div> -->
80
+                <!-- <el-form>
81
+                  <el-row style="margin-top: 20px;">
82
+                    <el-col :span="6" style="margin-left: 20px;">
83
+                      <el-form-item label="日期:">
84
+                        <el-date-picker
85
+                          v-model="start_time"
86
+                          type="date"
87
+                          placeholder="选择日期"
88
+                          style="width: 145px;">
89
+                        </el-date-picker>
90
+                      </el-form-item>
91
+                    </el-col>
92
+                    <el-col :span="6" >
93
+                      <el-form-item label="医生:">
94
+                        
95
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 145px;">
96
+                          <el-option
97
+                            v-for="item in options"
98
+                            :key="item.value"
99
+                            :label="item.label"
100
+                            :value="item.value">
101
+                          </el-option>
102
+                        </el-select>
103
+                      </el-form-item>
104
+                    </el-col>
105
+                  </el-row>
106
+
107
+                  <el-row >
108
+                    <el-col :span="5" style="margin-left: 20px;">
109
+                      <el-form-item label="T:">
110
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 65px;"></el-input>
111
+                        <span >ºC</span>
112
+                      </el-form-item>
113
+                    </el-col>
114
+                    <el-col :span="5" >
115
+                      <el-form-item label="P:">
116
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 65px;"></el-input>
117
+                        <span >次/分</span>
118
+                      </el-form-item>
119
+                    </el-col>
120
+                    <el-col :span="5" >
121
+                      <el-form-item label="R:">
122
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 65px;"></el-input>
123
+                        <span >次/分</span>
124
+                      </el-form-item>
125
+                    </el-col>
126
+                    <el-col :span="8" >
127
+                      <el-form-item label="BP:">
128
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 65px;"></el-input>
129
+                        <span >/</span>
130
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 65px;"></el-input>
131
+                        <span >mmHg</span>
132
+                      </el-form-item>
133
+                    </el-col>
134
+                  </el-row>
135
+
136
+                  <el-row >
137
+                    <el-col :span="6" style="margin-left: 20px;">
138
+                      <el-form-item label="贫血容貌:">
139
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
140
+                          <el-option
141
+                            v-for="item in options"
142
+                            :key="item.value"
143
+                            :label="item.label"
144
+                            :value="item.value">
145
+                          </el-option>
146
+                        </el-select>
147
+                      </el-form-item>
148
+                     
149
+                    </el-col>
150
+                    <el-col :span="5" >
151
+                      <el-form-item label="体位:">
152
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
153
+                          <el-option
154
+                            v-for="item in options"
155
+                            :key="item.value"
156
+                            :label="item.label"
157
+                            :value="item.value">
158
+                          </el-option>
159
+                        </el-select>
160
+                      </el-form-item>
161
+                    </el-col>
162
+                    <el-col :span="5" >
163
+                      <el-form-item label="浮肿:">
164
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
165
+                          <el-option
166
+                            v-for="item in options"
167
+                            :key="item.value"
168
+                            :label="item.label"
169
+                            :value="item.value">
170
+                          </el-option>
171
+                        </el-select>
172
+                      </el-form-item>
173
+                     
174
+                    </el-col>
175
+                    <el-col :span="7" >
176
+                      <el-form-item label="出血点/瘀斑/血肿:">
177
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
178
+                          <el-option
179
+                            v-for="item in options"
180
+                            :key="item.value"
181
+                            :label="item.label"
182
+                            :value="item.value">
183
+                          </el-option>
184
+                        </el-select>
185
+                      </el-form-item>
186
+                      
187
+                    </el-col>
188
+                  </el-row>
189
+
190
+                  <el-row >
191
+                    <el-col :span="6" style="margin-left: 20px;">
192
+                      <el-form-item label="发育:">
193
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
194
+                          <el-option
195
+                            v-for="item in options"
196
+                            :key="item.value"
197
+                            :label="item.label"
198
+                            :value="item.value">
199
+                          </el-option>
200
+                        </el-select>
201
+                      </el-form-item>
202
+                     
203
+                    </el-col>
204
+                    <el-col :span="5" >
205
+                      <el-form-item label="营养:">
206
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
207
+                          <el-option
208
+                            v-for="item in options"
209
+                            :key="item.value"
210
+                            :label="item.label"
211
+                            :value="item.value">
212
+                          </el-option>
213
+                        </el-select>
214
+                      </el-form-item>
215
+                    </el-col>
216
+                    <el-col :span="5" >
217
+                      <el-form-item label="神志:">
218
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 90px;">
219
+                          <el-option
220
+                            v-for="item in options"
221
+                            :key="item.value"
222
+                            :label="item.label"
223
+                            :value="item.value">
224
+                          </el-option>
225
+                        </el-select>
226
+                      </el-form-item>     
227
+                    </el-col>
228
+                  </el-row>
229
+
230
+                  <el-row>
231
+                    <el-col style="text-align: center;">
232
+                      <span style="">-------------------------------------------------------------------------------</span>
233
+                      <span style="color: aqua;">皮肤黏膜</span>
234
+                      <span style="">-------------------------------------------------------------------------------</span>
235
+                    </el-col>
236
+                  </el-row>
237
+
238
+                  <el-row >
239
+                    <el-col :span="6" style="margin-left: 20px;">
240
+                      <el-form-item label="皮肤黏膜:">
241
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
242
+                          <el-option
243
+                            v-for="item in options"
244
+                            :key="item.value"
245
+                            :label="item.label"
246
+                            :value="item.value">
247
+                          </el-option>
248
+                        </el-select>
249
+                      </el-form-item>
250
+                     
251
+                    </el-col>
252
+                    <el-col :span="5" >
253
+                      <el-form-item label="部位:">
254
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
255
+                      </el-form-item>
256
+                    </el-col>
257
+                    <el-col :span="5" >
258
+                      <el-form-item label="程度:">
259
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
260
+                      </el-form-item>
261
+                     
262
+                    </el-col>
263
+                    <el-col :span="7" >
264
+                      <el-form-item label="皮下出血点:">
265
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
266
+                          <el-option
267
+                            v-for="item in options"
268
+                            :key="item.value"
269
+                            :label="item.label"
270
+                            :value="item.value">
271
+                          </el-option>
272
+                        </el-select>
273
+                      </el-form-item>
274
+                    </el-col>
275
+                  </el-row>
276
+
277
+                  <el-row >
278
+                    <el-col :span="6" style="margin-left: 20px;">
279
+                      <el-form-item label="紫癜:">
280
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
281
+                          <el-option
282
+                            v-for="item in options"
283
+                            :key="item.value"
284
+                            :label="item.label"
285
+                            :value="item.value">
286
+                          </el-option>
287
+                        </el-select>
288
+                      </el-form-item>
289
+                     
290
+                    </el-col>
291
+                    <el-col :span="6" >
292
+                      <el-form-item label="皮肤温度:">
293
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
294
+                          <el-option
295
+                            v-for="item in options"
296
+                            :key="item.value"
297
+                            :label="item.label"
298
+                            :value="item.value">
299
+                          </el-option>
300
+                        </el-select>
301
+                      </el-form-item>
302
+                    </el-col>
303
+                    <el-col :span="9" >
304
+                      <el-form-item label="其它:">
305
+                        <el-input type="textarea" v-model="input" placeholder="请输入内容" style="width: 210px;"></el-input>
306
+                      </el-form-item>     
307
+                    </el-col>
308
+                  </el-row>
309
+                  
310
+                  <el-row>
311
+                    <el-col style="text-align: center;">
312
+                      <span style="">-------------------------------------------------------------------------------</span>
313
+                      <span style="color: aqua;">淋巴结</span>
314
+                      <span style="">-------------------------------------------------------------------------------</span>
315
+                    </el-col>
316
+                  </el-row>
317
+
318
+                  <el-row >
319
+                    <el-col :span="8"  style="margin-left: 20px;">
320
+                      <el-form-item label="浅表淋巴肿大:">
321
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
322
+                          <el-option
323
+                            v-for="item in options"
324
+                            :key="item.value"
325
+                            :label="item.label"
326
+                            :value="item.value">
327
+                          </el-option>
328
+                        </el-select>
329
+                      </el-form-item>
330
+                    </el-col>
331
+                    <el-col :span="12" >
332
+                      <el-form-item label="其它:">
333
+                        <el-input type="textarea" v-model="input" placeholder="请输入内容" style="width: 210px;"></el-input>
334
+                      </el-form-item>     
335
+                    </el-col>
336
+                  </el-row>
337
+                   
338
+                  <el-row>
339
+                    <el-col style="text-align: center;">
340
+                      <span style="">-------------------------------------------------------------------------------</span>
341
+                      <span style="color: aqua;">头部</span>
342
+                      <span style="">-------------------------------------------------------------------------------</span>
343
+                    </el-col>
344
+                  </el-row>
345
+
346
+                  <el-row >
347
+                    <el-col :span="6" style="margin-left: 20px;">
348
+                      <el-form-item label="眼睑:">
349
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
350
+                          <el-option
351
+                            v-for="item in options"
352
+                            :key="item.value"
353
+                            :label="item.label"
354
+                            :value="item.value">
355
+                          </el-option>
356
+                        </el-select>
357
+                      </el-form-item>
358
+                     
359
+                    </el-col>
360
+                    <el-col :span="6" >
361
+                      <el-form-item label="瞳孔(等大等圆):">
362
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
363
+                          <el-option
364
+                            v-for="item in options"
365
+                            :key="item.value"
366
+                            :label="item.label"
367
+                            :value="item.value">
368
+                          </el-option>
369
+                        </el-select>
370
+                      </el-form-item>
371
+                      
372
+                    </el-col>
373
+                    <el-col :span="5" >
374
+                      <el-form-item label="左(mm):">
375
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
376
+                      </el-form-item>
377
+                     
378
+                    </el-col>
379
+                    <el-col :span="5" >
380
+                      <el-form-item label="右(mm):">
381
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
382
+                      </el-form-item>
383
+                    </el-col>
384
+                  </el-row>
385
+
386
+                  <el-row >
387
+                    <el-col :span="6" style="margin-left: 20px;">
388
+                      <el-form-item label="对光反射:">
389
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
390
+                      </el-form-item>
391
+                     
392
+                    </el-col>
393
+                    <el-col :span="6" >
394
+                      <el-form-item label="扁桃体:">
395
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
396
+                      </el-form-item>
397
+                    </el-col>
398
+                    <el-col :span="9" >
399
+                      <el-form-item label="咽部:">
400
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
401
+                      </el-form-item>     
402
+                    </el-col>
403
+                  </el-row>
404
+
405
+                  <el-row>
406
+                    <el-col style="margin-left: 20px;">
407
+                      <el-form-item label="其它:">
408
+                        <el-input type="textarea" v-model="input" placeholder="请输入内容" style="width: 300px;"></el-input>
409
+                      </el-form-item>    
410
+                    </el-col>
411
+                  </el-row>
412
+
413
+                  
414
+                  <el-row>
415
+                    <el-col style="text-align: center;">
416
+                      <span style="">-------------------------------------------------------------------------------</span>
417
+                      <span style="color: aqua;">肺脏</span>
418
+                      <span style="">-------------------------------------------------------------------------------</span>
419
+                    </el-col>
420
+                  </el-row>
421
+
422
+                  <el-row >
423
+                    <el-col :span="7" style="margin-left: 20px;">
424
+                      <el-form-item label="呼吸音:">
425
+                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>
426
+                      </el-form-item>
427
+                     
428
+                    </el-col>
429
+                    <el-col :span="6" >
430
+                      <el-form-item label="胸膜摩擦音:">
431
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
432
+                          <el-option
433
+                            v-for="item in options"
434
+                            :key="item.value"
435
+                            :label="item.label"
436
+                            :value="item.value">
437
+                          </el-option>
438
+                        </el-select>
439
+                      </el-form-item>
440
+                      
441
+                    </el-col>
442
+                    <el-col :span="5" >
443
+                      <el-form-item label="部位:">
444
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
445
+                          <el-option
446
+                            v-for="item in options"
447
+                            :key="item.value"
448
+                            :label="item.label"
449
+                            :value="item.value">
450
+                          </el-option>
451
+                        </el-select>
452
+                      </el-form-item>
453
+                     
454
+                    </el-col>
455
+                    <el-col :span="5" >
456
+                      <el-form-item label="啰音:">
457
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
458
+                          <el-option
459
+                            v-for="item in options"
460
+                            :key="item.value"
461
+                            :label="item.label"
462
+                            :value="item.value">
463
+                          </el-option>
464
+                        </el-select>
465
+                      </el-form-item>
466
+                    </el-col>
467
+                  </el-row>
468
+
469
+                  <el-row>
470
+                      <el-col style="margin-left: 20px;">
471
+                      <el-form-item label="描述:">
472
+                        <el-input type="textarea" v-model="input" placeholder="请输入内容" style="width: 300px;"></el-input>
473
+                      </el-form-item>     
474
+                    </el-col>
475
+                  </el-row>
476
+                  
477
+                   <el-row>
478
+                    <el-col style="text-align: center;">
479
+                      <span style="">-------------------------------------------------------------------------------</span>
480
+                      <span style="color: aqua;">心脏</span>
481
+                      <span style="">-------------------------------------------------------------------------------</span>
482
+                    </el-col>
483
+                  </el-row>
484
+
485
+                  <el-row >
486
+                    <el-col :span="6" style="margin-left: 20px;">
487
+                      <el-form-item label="心脏大小:">
488
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
489
+                          <el-option
490
+                            v-for="item in options"
491
+                            :key="item.value"
492
+                            :label="item.label"
493
+                            :value="item.value">
494
+                          </el-option>
495
+                        </el-select>
496
+                      </el-form-item>
497
+                     
498
+                    </el-col>
499
+                    <el-col :span="6" >
500
+                      <el-form-item label="心律:">
501
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
502
+                          <el-option
503
+                            v-for="item in options"
504
+                            :key="item.value"
505
+                            :label="item.label"
506
+                            :value="item.value">
507
+                          </el-option>
508
+                        </el-select>
509
+                      </el-form-item>
510
+                      
511
+                    </el-col>
512
+                    <el-col :span="6" >
513
+                      <el-form-item label="心包摩擦声:">
514
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
515
+                          <el-option
516
+                            v-for="item in options"
517
+                            :key="item.value"
518
+                            :label="item.label"
519
+                            :value="item.value">
520
+                          </el-option>
521
+                        </el-select>
522
+                      </el-form-item>
523
+                    </el-col>
524
+                  </el-row>
525
+
526
+                  <el-row >
527
+                    <el-col :span="6" style="margin-left: 20px;">
528
+                      <el-form-item label="杂音:">
529
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
530
+                          <el-option
531
+                            v-for="item in options"
532
+                            :key="item.value"
533
+                            :label="item.label"
534
+                            :value="item.value">
535
+                          </el-option>
536
+                        </el-select>
537
+                      </el-form-item>
538
+                    </el-col>
539
+                    <el-col :span="6" >
540
+                      <el-form-item label="附加音:">
541
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
542
+                          <el-option
543
+                            v-for="item in options"
544
+                            :key="item.value"
545
+                            :label="item.label"
546
+                            :value="item.value">
547
+                          </el-option>
548
+                        </el-select>
549
+                      </el-form-item>
550
+                    </el-col>
551
+                  </el-row>
552
+                  <el-row>
553
+                      <el-col style="margin-left: 20px;">
554
+                      <el-form-item label="描述:">
555
+                        <el-input type="textarea" v-model="input" placeholder="请输入内容" style="width: 300px;"></el-input>
556
+                      </el-form-item>     
557
+                    </el-col>
558
+                  </el-row>
559
+
560
+                  
561
+                  <el-row>
562
+                    <el-col style="text-align: center;">
563
+                      <span style="">-------------------------------------------------------------------------------</span>
564
+                      <span style="color: aqua;">腹部</span>
565
+                      <span style="">-------------------------------------------------------------------------------</span>
566
+                    </el-col>
567
+                  </el-row>
568
+
569
+                  <el-row >
570
+                    <el-col :span="6" style="margin-left: 20px;">
571
+                      <el-form-item label="腹水征:">
572
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
573
+                          <el-option
574
+                            v-for="item in options"
575
+                            :key="item.value"
576
+                            :label="item.label"
577
+                            :value="item.value">
578
+                          </el-option>
579
+                        </el-select>
580
+                      </el-form-item>
581
+                    </el-col>
582
+                    <el-col :span="12" >
583
+                      <el-form-item label="肝颈静脉返流征:">
584
+                        <el-input type="textarea" v-model="input" placeholder="请输入内容" style="width: 300px;"></el-input>
585
+                      </el-form-item>
586
+                    </el-col>
587
+                  </el-row>
588
+
589
+                  <el-row >
590
+                    <el-col :span="10" style="margin-left: 20px;">
591
+                      <el-form-item label="肝脏:">
592
+                        <span>压痛</span>
593
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
594
+                          <el-option
595
+                            v-for="item in options"
596
+                            :key="item.value"
597
+                            :label="item.label"
598
+                            :value="item.value">
599
+                          </el-option>
600
+                        </el-select>
601
+                        <span>叩痛</span>
602
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
603
+                          <el-option
604
+                            v-for="item in options"
605
+                            :key="item.value"
606
+                            :label="item.label"
607
+                            :value="item.value">
608
+                          </el-option>
609
+                        </el-select>
610
+                      </el-form-item>
611
+                    </el-col>
612
+                    <el-col :span="10" >
613
+                      <el-form-item label="脾脏:">
614
+                        <span>压痛</span>
615
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
616
+                          <el-option
617
+                            v-for="item in options"
618
+                            :key="item.value"
619
+                            :label="item.label"
620
+                            :value="item.value">
621
+                          </el-option>
622
+                        </el-select>
623
+                        <span>叩痛</span>
624
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
625
+                          <el-option
626
+                            v-for="item in options"
627
+                            :key="item.value"
628
+                            :label="item.label"
629
+                            :value="item.value">
630
+                          </el-option>
631
+                        </el-select>
632
+                      </el-form-item>
633
+                    </el-col>
634
+                  </el-row>
635
+
636
+                  <el-row >
637
+                    <el-col :span="10" style="margin-left: 20px;">
638
+                      <el-form-item label="肾脏:">
639
+                        <span>压痛</span>
640
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
641
+                          <el-option
642
+                            v-for="item in options"
643
+                            :key="item.value"
644
+                            :label="item.label"
645
+                            :value="item.value">
646
+                          </el-option>
647
+                        </el-select>
648
+                        <span>叩痛</span>
649
+                        <el-select v-model="doctor" placeholder="请选择" style="width: 100px;">
650
+                          <el-option
651
+                            v-for="item in options"
652
+                            :key="item.value"
653
+                            :label="item.label"
654
+                            :value="item.value">
655
+                          </el-option>
656
+                        </el-select>
657
+                      </el-form-item>
658
+                    </el-col>
659
+                  </el-row>
660
+
661
+                  <el-row>
662
+                      <el-col style="margin-left: 20px;">
663
+                      <el-form-item label="描述:">
664
+                        <el-input type="textarea" autosize v-model="input" placeholder="请输入内容" style="width: 300px;"></el-input>
665
+                      </el-form-item>     
666
+                    </el-col>
667
+                  </el-row>
668
+
669
+                  <div style="background-color:aquamarine" class="title">其他</div>
670
+                  <div>
671
+                    双下肢无水肿
672
+                  </div>
673
+                </el-form> -->
674
+
76 675
               </div>
77 676
             </el-col>
78 677
           </el-row>
@@ -197,6 +796,7 @@
197 796
     },
198 797
     data() {
199 798
       return {
799
+        input:'',
200 800
         loading: false,
201 801
         title: '',
202 802
         patient_id: 0,
@@ -512,3 +1112,14 @@
512 1112
   background-color: #d0d3da;
513 1113
 }
514 1114
 </style>
1115
+<style lang="scss" scoped>
1116
+  .record_content_panel{
1117
+    .el-row{
1118
+      margin-bottom: 10px;
1119
+      }
1120
+    .el-input__inner{
1121
+      padding: 0px 0px !important;
1122
+    }
1123
+    
1124
+  }
1125
+</style>

+ 1 - 1
src/xt_pages/user/patientInfo.vue Просмотреть файл

@@ -12,7 +12,7 @@ import PatientSidebar from './components/PatientSidebar'
12 12
 
13 13
 export default {
14 14
    name: 'editForm',
15
-  components: { PatientDetail, PatientSidebar },
15
+  components: { PatientDetail, PatientSidebar},
16 16
   data() {
17 17
     return {
18 18
       patientID: 0,

+ 4 - 5
src/xt_pages/user/rescueRecord.vue Просмотреть файл

@@ -68,11 +68,10 @@
68 68
                 @current-change="didChangeCurrentRecord"
69 69
                 @selection-change="didSelectionChange"
70 70
               >
71
-                <el-table-column
72
-                  type="selection"
73
-                  width="40"
74
-                  align="center"
75
-                ></el-table-column>
71
+              <el-table-column
72
+                type="selection"
73
+                width="55">
74
+              </el-table-column>
76 75
                 <el-table-column label="记录时间" align="center">
77 76
                   <template slot-scope="scope">
78 77
                     {{ recordTime(scope.row.record_time) }}