Browse Source

no message

张保健 5 years ago
parent
commit
a0291f9950

+ 101 - 3
src/api/manage.js View File

@@ -71,7 +71,6 @@ export function getMachineDetailById(id, params) {
71 71
 }
72 72
 
73 73
 export function UpdateMachineInfo(data) {
74
-  console.log("data是什么", data);
75 74
   return request({
76 75
     url: "/api/management/updatemachineinfo",
77 76
     method: "Post",
@@ -87,11 +86,110 @@ export function getAllEquimentName(params) {
87 86
   });
88 87
 }
89 88
 
90
-export function savePlan(data) {
89
+export function savePlan(data, id) {
91 90
   console.log("data是什么", data);
91
+  console.log("id", id);
92
+  return request({
93
+    url: "/api/management/saveplan?id=" + id,
94
+    method: "Post",
95
+    data: data
96
+  });
97
+}
98
+
99
+export function getAllPlan(params) {
100
+  return request({
101
+    url: "/api/management/getallplan",
102
+    method: "Get",
103
+    params: params
104
+  });
105
+}
106
+
107
+export function getAllPlanDetail(id, params) {
108
+  return request({
109
+    url: "/api/management/getallplandetail?id=" + id,
110
+    method: "Get",
111
+    params: params
112
+  });
113
+}
114
+
115
+export function getEditMachine(id, params) {
116
+  return request({
117
+    url: "/api/management/geteditmachine?id=" + id,
118
+    method: "Get",
119
+    params: params
120
+  });
121
+}
122
+
123
+export function DeletePlans(data) {
124
+  return request({
125
+    url: "/api/staff/deleteplans",
126
+    method: "delete",
127
+    data: data
128
+  });
129
+}
130
+
131
+export function EditPlanDetail(id, params) {
132
+  return request({
133
+    url: "/api/manage/editplandetail?id=" + id,
134
+    method: "get",
135
+    params: params
136
+  });
137
+}
138
+
139
+export function UpdatePlanInfo(data) {
92 140
   return request({
93
-    url: "/api/management/saveplan",
141
+    url: "/api/manage/updateplaninfo",
94 142
     method: "Post",
95 143
     data: data
96 144
   });
97 145
 }
146
+
147
+export function getComprehensive(params) {
148
+  return request({
149
+    url: "/api/manage/getcomprehensive",
150
+    method: "Get",
151
+    params: params
152
+  });
153
+}
154
+
155
+export function SaveInformation(data) {
156
+  return request({
157
+    url: "/api/manage/saveinformation",
158
+    method: "Post",
159
+    data: data
160
+  });
161
+}
162
+
163
+export function getPatientInfo(id, params) {
164
+  return request({
165
+    url: "/api/manage/getpatientinfo?id=" + id,
166
+    method: "Get",
167
+    params: params
168
+  });
169
+}
170
+
171
+export function ChangeClass(equitid, id) {
172
+  const params = {
173
+    equitid: equitid,
174
+    id: id
175
+  };
176
+  return request({
177
+    url: "/api/manage/changeclass",
178
+    method: "Get",
179
+    params: params
180
+  });
181
+}
182
+
183
+export function changePatient(equitid, id) {
184
+  console.log("equitid", equitid);
185
+  console.log("id", id);
186
+  const params = {
187
+    equitid: equitid,
188
+    id: id
189
+  };
190
+  return request({
191
+    url: "/api/manage/changepatient",
192
+    method: "Get",
193
+    params: params
194
+  });
195
+}

+ 43 - 41
src/router/modules/device.js View File

@@ -11,47 +11,49 @@ export default {
11 11
     title: 'deviceManage',
12 12
     icon: 'shebei'
13 13
   },
14
-  children: [{
15
-    path: '/device/zones',
16
-    component: () => import('@/xt_pages/device/zone_main'),
17
-    name: 'deviceZoneManage',
18
-    meta: {
19
-      title: 'deviceZoneManage'
14
+  children: [
15
+    {
16
+      path: '/device/zones',
17
+      component: () => import('@/xt_pages/device/zone_main'),
18
+      name: 'deviceZoneManage',
19
+      meta: {
20
+        title: 'deviceZoneManage'
21
+      }
22
+    },
23
+    {
24
+      path: '/device/groups',
25
+      component: () => import('@/xt_pages/device/group_main'),
26
+      name: 'deviceGroupManage',
27
+      meta: {
28
+        title: 'deviceGroupManage'
29
+      }
30
+    },
31
+    {
32
+      path: '/device/numbers',
33
+      component: () => import('@/xt_pages/device/number_main'),
34
+      name: 'deviceNumberManage',
35
+      meta: {
36
+        title: 'deviceNumberManage'
37
+      }
38
+    },
39
+    {
40
+      path: '/device/main',
41
+      // component: () => import("@/xt_pages/management/index"),
42
+      component: () => import('@/xt_pages/device/main'),
43
+      name: 'dialysisMachineManage',
44
+      meta: {
45
+        title: 'dialysisMachineManage'
46
+      }
47
+    },
48
+    {
49
+      path: '/device/home',
50
+      component: () => import('@/xt_pages/management/home'),
51
+      name: 'managementHome',
52
+      is_menu: false,
53
+      hidden: true,
54
+      meta: {
55
+        title: '设备管理详情页'
56
+      }
20 57
     }
21
-  },
22
-  {
23
-    path: '/device/groups',
24
-    component: () => import('@/xt_pages/device/group_main'),
25
-    name: 'deviceGroupManage',
26
-    meta: {
27
-      title: 'deviceGroupManage'
28
-    }
29
-  },
30
-  {
31
-    path: '/device/numbers',
32
-    component: () => import('@/xt_pages/device/number_main'),
33
-    name: 'deviceNumberManage',
34
-    meta: {
35
-      title: 'deviceNumberManage'
36
-    }
37
-  },
38
-  {
39
-    path: '/device/main',
40
-    component: () => import('@/xt_pages/management/index'),
41
-    name: 'dialysisMachineManage',
42
-    meta: {
43
-      title: 'dialysisMachineManage'
44
-    }
45
-  },
46
-  {
47
-    path: '/device/home',
48
-    component: () => import('@/xt_pages/management/home'),
49
-    name: 'managementHome',
50
-    is_menu: false,
51
-    hidden: true,
52
-    meta: {
53
-      title: '设备管理详情页'
54
-    }
55
-  }
56 58
   ]
57 59
 }

+ 3 - 2
src/xt_pages/data/printTemplate.vue View File

@@ -4,7 +4,7 @@
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
     </div>
6 6
     <div class="app-container" style="text-align: center">
7
-     <p style="margin-top: 10px;margin-bottom: 30px">请选择你需要打印的血液透析护理记录单样式</p>
7
+      <p style="margin-top: 10px;margin-bottom: 30px">请选择你需要打印的血液透析护理记录单样式</p>
8 8
       <el-row :gutter="20" type="flex" justify="center">
9 9
         <el-col :span="6" style="text-align: center">
10 10
           <div>
@@ -71,7 +71,8 @@
71 71
 
72 72
         url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
73 73
         imgs_one: [
74
-          'https://images.shengws.com/template_one.jpg'
74
+          // 'https://images.shengws.com/template_one.jpg'
75
+          'https://images.shengws.com/fangji.jpg'
75 76
         ],
76 77
         imgs_two: [
77 78
           'https://images.shengws.com/template_two.jpg'

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

@@ -418,7 +418,7 @@
418 418
                       <div class="under_line" style="width: 40px;">
419 419
                         {{record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:''}}
420 420
                       </div>
421
-                      ml
421
+                      L
422 422
                     </div>
423 423
                     <div class="inline_block" style="margin-left: 15px;">
424 424
                       透后体重:
@@ -493,9 +493,9 @@
493 493
                   </div>
494 494
                   <div class="row" style="padding: 2px 0;">
495 495
                     <div>透析小结:
496
-                    <div style="width:95%;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;">
497
-                      {{record.summer&&record.summer.dialysis_summary.length>0?record.summer.dialysis_summary:''}}
498
-                    </div>
496
+                      <div style="width:95%;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;">
497
+                        {{record.summer&&record.summer.dialysis_summary.length>0?record.summer.dialysis_summary:''}}
498
+                      </div>
499 499
                     </div>
500 500
                   </div>
501 501
 

+ 13 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -7,6 +7,8 @@
7 7
       :modal-append-to-body="false"
8 8
       :append-to-body="true"
9 9
     >
10
+      <el-button @click="handlePatientInfo">{{patient.name}}</el-button>
11
+
10 12
       <el-form ref="dialysisPrescription" :model="dialysisPrescription" label-width="148px">
11 13
         <el-row :gutter="24">
12 14
           <el-col :span="8" v-if="isShows('透析模式')">
@@ -489,6 +491,12 @@
489 491
                 <el-button type="primary" @click="handleAdviceCommit">保 存</el-button>
490 492
     </span>
491 493
     </el-dialog>
494
+
495
+
496
+
497
+
498
+
499
+
492 500
   </div>
493 501
 
494 502
 </template>
@@ -1798,6 +1806,11 @@
1798 1806
           this.huShow = true
1799 1807
           this.totalShow = true
1800 1808
         }
1809
+      },handlePatientInfo(){
1810
+
1811
+
1812
+
1813
+
1801 1814
       }
1802 1815
     },
1803 1816
     created() {

File diff suppressed because it is too large
+ 995 - 1000
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue


+ 94 - 134
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -194,45 +194,6 @@
194 194
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==5">
195 195
                       HF
196 196
                     </div>
197
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==6">
198
-                      SCUF
199
-                    </div>
200
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==7">
201
-                      IUF
202
-                    </div>
203
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==8">
204
-                      HFHD
205
-                    </div>
206
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==9">
207
-                      HFHD+HP
208
-                    </div>
209
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==10">
210
-                      PHF
211
-                    </div>
212
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==11">
213
-                      HFR
214
-                    </div>
215
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==12">
216
-                      HDF+HP
217
-                    </div>
218
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==13">
219
-                      CRRT
220
-                    </div>
221
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==14">
222
-                      腹水回输
223
-                    </div>
224
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==15">
225
-                      HD前置换
226
-                    </div>
227
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==16">
228
-                      HD后置换
229
-                    </div>
230
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==17">
231
-                      HDF前置换
232
-                    </div>
233
-                    <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
234
-                      HDF后置换
235
-                    </div>
236 197
                   </div>
237 198
 
238 199
                   <div class="inline_block" style="margin-left:10px;flex:1;">
@@ -378,31 +339,31 @@
378 339
                   </div>
379 340
                   <div class="inline_block" style="margin-left:20px;">
380 341
                   透析机号:
381
-                    <div class="under_line" style="width: 50px;text-align: center;">
382
-                      {{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}
383
-                    </div>
342
+                  <div class="under_line" style="width: 50px;text-align: center;">
343
+                    {{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}
384 344
                   </div>
385 345
                 </div>
386
-              </td>
387
-            </tr>
388
-            <tr>
389
-              <td style="padding: 0; position: relative;" colspan="2">
390
-                <table class="inside_table">
391
-                  <tbody>
392
-                    <tr><td :colspan="(prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12) ? 12 :11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">治疗纪录</td></tr>
393
-                    <tr>
394
-                      <td width="60">时间</td>
395
-                      <td width="60">血压<br/>(mmHg)</td>
396
-                      <td width="50">脉搏<br>(次/分)</td>
397
-                      <td width="50">呼吸<br/>(次/分)</td>
398
-                      <td width="50">血流量<br/>(ml/min)</td>
399
-                      <td width="50">静脉压<br/>(mmHg)</td>
400
-                      <td width="50">跨膜压<br/>(mmHg)</td>
401
-                      <td width="60">透析液温度(°C)</td>
402
-                      <td width="50">电导度<br/>(ms/cm)</td>
403
-                      <td width="50">超滤量<br/>(ml)</td>
404
-                      <td v-if="prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12" width="50">置换量<br/>(ml)</td>
405
-                      <td width="200">病情变化及处理</td>
346
+              </div>
347
+            </td>
348
+          </tr>
349
+          <tr>
350
+            <td style="padding: 0; position: relative;" colspan="2">
351
+              <table class="inside_table">
352
+                <tbody>
353
+                <tr><td :colspan="(prescription.mode_id==2 || prescription.mode_id==5) ? 12 :11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">治疗纪录</td></tr>
354
+                <tr>
355
+                  <td width="60">时间</td>
356
+                  <td width="60">血压<br/>(mmHg)</td>
357
+                  <td width="50">脉搏<br>(次/分)</td>
358
+                  <td width="50">呼吸<br/>(次/分)</td>
359
+                  <td width="50">血流量<br/>(ml/min)</td>
360
+                  <td width="50">静脉压<br/>(mmHg)</td>
361
+                  <td width="50">跨膜压<br/>(mmHg)</td>
362
+                  <td width="60">透析液温度(°C)</td>
363
+                  <td width="50">电导度<br/>(ms/cm)</td>
364
+                  <td width="50">超滤量<br/>(ml)</td>
365
+                  <td v-if="prescription.mode_id==2 || prescription.mode_id==5" width="50">置换量<br/>(ml)</td>
366
+                  <td width="200">病情变化及处理</td>
406 367
 
407 368
                       <!-- <td width="100">时间</td>
408 369
                       <td width="30">T<br>C°</td>
@@ -417,68 +378,68 @@
417 378
                       <td  width="100">护士签名</td> -->
418 379
                     </tr>
419 380
 
420
-                    <tr v-for="(monitor,monindex) in monitors" :key="monindex">
421
-                      <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
422
-                      <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure+'/':''}}{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
423
-                      <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
424
-                      <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
425
-                      <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
426
-                      <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
427
-                      <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
428
-                      <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
429
-                      <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
430
-                      <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
431
-                      <td v-if="prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12" width="50">{{monitor.displacement_quantity?monitor.displacement_quantity:0}}</td>
432
-                      <td style="line-height:16px;padding:0px;">
433
-                        <div style="min-height:35px;line-height:35px; overflow:hidden;">
381
+                <tr v-for="(monitor,monindex) in monitors" :key="monindex">
382
+                  <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
383
+                  <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure+'/':''}}{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
384
+                  <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
385
+                  <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
386
+                  <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
387
+                  <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
388
+                  <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
389
+                  <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
390
+                  <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
391
+                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
392
+                  <td v-if="prescription.mode_id==2 || prescription.mode_id==5" width="50">{{monitor.displacement_quantity?monitor.displacement_quantity:0}}</td>
393
+                  <td style="line-height:16px;padding:0px;">
394
+                    <div style="min-height:35px;line-height:35px; overflow:hidden;">
434 395
                           <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
435 396
                             <template v-if="monindex == 0">【开始透析】</template>
436 397
                             {{monitor.end}}
437 398
                             {{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}
438 399
                           </span>
439
-                        </div>
440
-                      </td>
441
-                    </tr>
442
-                    <tr v-for="(monitor,monindex) in monitors2" :key="monindex">
443
-                      <td> </td>
444
-                      <td> </td>
445
-                      <td> </td>
446
-                      <td> </td>
447
-                      <td> </td>
448
-                      <td> </td>
449
-                      <td> </td>
450
-                      <td> </td>
451
-                      <td> </td>
452
-                      <td> </td>
453
-                      <td v-if="prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12" width="50"></td>
454
-                      <td style="line-height:16px;padding:0px;"><div style="height:40px;line-height:20px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> </span> </div></td>
455
-                    </tr>
456
-                  </tbody>
457
-                </table>
458
-              </td>
459
-            </tr>
460
-            <tr>
461
-              <td style="padding: 0; position: relative;" colspan="2">
462
-                <table class="inside_table">
463
-                  <tbody>
464
-                    <tr style="line-height:35px;padding:8px 5px;">
465
-                      <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">医嘱内容</td>
466
-                    </tr>
467
-                    <!-- <tr style="line-height:35px;padding:8px 5px;">
468
-                      <td colspan="4" style="font-size: 16px">开医嘱</td>
469
-                      <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
470
-                    </tr> -->
471
-                    <tr style="line-height:35px;padding:8px 5px;">
472
-                      <td style="font-size: 16px" width="10%">时间</td>
473
-                      <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
474
-                      <td style="font-size: 16px" width="10%">医生签名</td>
475
-                      <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
476
-                      <td style="font-size: 16px" width="10%">执行人签名</td>
477
-                      <td style="font-size: 16px" width="10%">时间</td>
478
-                    </tr>
479
-                    <!-- <template v-for="group in doctor_advices" > -->
480
-                      <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index" >
481
-                        <td height="32px" >
400
+                    </div>
401
+                  </td>
402
+                </tr>
403
+                <tr v-for="(monitor,monindex) in monitors2" :key="monindex">
404
+                  <td> </td>
405
+                  <td> </td>
406
+                  <td> </td>
407
+                  <td> </td>
408
+                  <td> </td>
409
+                  <td> </td>
410
+                  <td> </td>
411
+                  <td> </td>
412
+                  <td> </td>
413
+                  <td> </td>
414
+                  <td v-if="prescription.mode_id==2 || prescription.mode_id==5" width="50"></td>
415
+                  <td style="line-height:16px;padding:0px;"><div style="height:40px;line-height:20px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> </span> </div></td>
416
+                </tr>
417
+                </tbody>
418
+              </table>
419
+            </td>
420
+          </tr>
421
+          <tr>
422
+            <td style="padding: 0; position: relative;" colspan="2">
423
+              <table class="inside_table">
424
+                <tbody>
425
+                <tr style="line-height:35px;padding:8px 5px;">
426
+                  <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">医嘱内容</td>
427
+                </tr>
428
+                <!-- <tr style="line-height:35px;padding:8px 5px;">
429
+                  <td colspan="4" style="font-size: 16px">开医嘱</td>
430
+                  <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
431
+                </tr> -->
432
+                <tr style="line-height:35px;padding:8px 5px;">
433
+                  <td style="font-size: 16px" width="10%">时间</td>
434
+                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
435
+                  <td style="font-size: 16px" width="10%">医生签名</td>
436
+                  <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
437
+                  <td style="font-size: 16px" width="10%">执行人签名</td>
438
+                  <td style="font-size: 16px" width="10%">时间</td>
439
+                </tr>
440
+                <!-- <template v-for="group in doctor_advices" > -->
441
+                <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index" >
442
+                  <td height="32px" >
482 443
                             <span v-if="advice.start_time">
483 444
                               {{getTime(advice.start_time,'{h}:{i}')}}
484 445
                             </span>
@@ -678,7 +639,7 @@
678 639
                   </div>
679 640
                   次/分
680 641
                 </div>
681
-                <div class="inline_block" style="margin-left:10px;flex:1.5;">
642
+                <div class="inline_block" style="margin-left:10px;flex:1;">
682 643
                   BP:
683 644
                   <div class="under_line" style="width: 50px;text-align: center;">
684 645
                     {{afterdialysis.systolic_blood_pressure?afterdialysis.systolic_blood_pressure:'/'}}
@@ -689,17 +650,6 @@
689 650
                   </div>
690 651
                   mmHg
691 652
                 </div>
692
-                <div class="inline_block" style="margin-left:10px;flex:1.5;">
693
-                  实际治疗时间:
694
-                  <div class="under_line" style="width: 30px;text-align: center">
695
-                    {{afterdialysis.actual_treatment_hour?afterdialysis.actual_treatment_hour:'/'}}
696
-                  </div>
697
-                  h
698
-                  <div class="under_line" style="width: 30px;text-align: center">
699
-                    {{afterdialysis.actual_treatment_minute?afterdialysis.actual_treatment_minute:0}}
700
-                  </div>
701
-                  min
702
-                </div>
703 653
               </div>
704 654
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
705 655
                 <div class="inline_block" style="flex:2;">
@@ -708,9 +658,9 @@
708 658
                     {{afterdialysis.cruor?afterdialysis.cruor:'/'}}
709 659
                   </div>
710 660
                 </div>
711
-                <div class="inline_block" style="flex:2;">
661
+                <div class="inline_block" style="flex:1;">
712 662
                   内瘘:
713
-                  <div class="under_line" style="width: 200px;text-align: center">
663
+                  <div class="under_line" style="width: 70px;text-align: center">
714 664
                     {{afterdialysis.internal_fistula?afterdialysis.internal_fistula:'/'}}
715 665
                   </div>
716 666
                 </div>
@@ -720,7 +670,17 @@
720 670
                     {{afterdialysis.catheter?afterdialysis.catheter:'/'}}
721 671
                   </div>
722 672
                 </div>
723
-                
673
+                <div class="inline_block" style="flex:1.5;">
674
+                  实际治疗时间:
675
+                  <div class="under_line" style="width: 30px;text-align: center">
676
+                    {{afterdialysis.actual_treatment_hour?afterdialysis.actual_treatment_hour:'/'}}
677
+                  </div>
678
+                  h
679
+                  <div class="under_line" style="width: 30px;text-align: center">
680
+                    {{afterdialysis.actual_treatment_minute?afterdialysis.actual_treatment_minute:0}}
681
+                  </div>
682
+                  min
683
+                </div>
724 684
               </div>
725 685
 
726 686
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">

+ 243 - 0
src/xt_pages/management/components/EditMachineForm.vue View File

@@ -0,0 +1,243 @@
1
+<template>
2
+  <div id="edit-machine-form">
3
+    <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="44%" center>
4
+      <el-form :model="form" ref="form">
5
+        <el-row>
6
+          <el-col :span="10">
7
+            <el-form-item label="设备型号:">
8
+              <el-select style="width:135px" v-model="form.device_type">
9
+                <el-option
10
+                  v-for="item in this.DeviceType"
11
+                  :key="item.id"
12
+                  :label="item.equitment_name"
13
+                  :value="item.id"
14
+                ></el-option>
15
+              </el-select>
16
+            </el-form-item>
17
+          </el-col>
18
+          <el-col :span="10">
19
+            <el-form-item label="消毒时长:">
20
+              <el-input style="width:135px" v-model="form.disinfec_time"></el-input>
21
+              <span>分钟</span>
22
+            </el-form-item>
23
+          </el-col>
24
+        </el-row>
25
+        <el-row>
26
+          <el-col :span="10">
27
+            <el-form-item label="时间:">
28
+              <el-select
29
+                v-model="form.time"
30
+                multiple
31
+                filterable
32
+                allow-create
33
+                default-first-option
34
+                placeholder="请选择时间"
35
+              >
36
+                <el-option
37
+                  v-for="item in this.timeType"
38
+                  :key="item.id"
39
+                  :label="item.name"
40
+                  :value="item.id"
41
+                ></el-option>
42
+              </el-select>
43
+            </el-form-item>
44
+          </el-col>
45
+          <el-col :span="10">
46
+            <el-form-item label="班次:">
47
+              <el-select
48
+                v-model="form.class_time"
49
+                multiple
50
+                filterable
51
+                allow-create
52
+                default-first-option
53
+                placeholder="请选择时间"
54
+              >
55
+                <el-option
56
+                  v-for="item in this.classType"
57
+                  :key="item.id"
58
+                  :label="item.name"
59
+                  :value="item.id"
60
+                ></el-option>
61
+              </el-select>
62
+            </el-form-item>
63
+          </el-col>
64
+        </el-row>
65
+        <el-row>
66
+          <el-col :span="10">
67
+            <el-form-item label="机表消毒方式:">
68
+              <el-select style="width:135px" v-model="form.way">
69
+                <el-option
70
+                  v-for="item in this.disinfectType"
71
+                  :key="item.id"
72
+                  :label="item.name"
73
+                  :value="item.id"
74
+                ></el-option>
75
+              </el-select>
76
+            </el-form-item>
77
+          </el-col>
78
+          <el-col :span="10">
79
+            <el-form-item label="机表消毒液:">
80
+              <el-select
81
+                style="width:135px"
82
+                v-model="form.machine_disinfectant"
83
+                @change="changeDeviceType"
84
+              >
85
+                <el-option
86
+                  v-for="item in this.disinfectantType"
87
+                  :key="item.id"
88
+                  :label="item.name"
89
+                  :value="item.id"
90
+                ></el-option>
91
+              </el-select>
92
+            </el-form-item>
93
+          </el-col>
94
+        </el-row>
95
+        <el-row>
96
+          <el-col :span="10">
97
+            <el-form-item label="液路消毒方式:">
98
+              <el-select style="width:135px" v-model="form.disinfectant_way">
99
+                <el-option
100
+                  v-for="item in this.sterilizeType"
101
+                  :key="item.id"
102
+                  :label="item.name"
103
+                  :value="item.id"
104
+                ></el-option>
105
+              </el-select>
106
+            </el-form-item>
107
+          </el-col>
108
+          <el-col :span="10">
109
+            <el-form-item label="液路消毒液:">
110
+              <el-select style="width:135px" v-model="form.disinfectant">
111
+                <el-option
112
+                  v-for="item in this.fluidPathType"
113
+                  :key="item.id"
114
+                  :label="item.name"
115
+                  :value="item.id"
116
+                ></el-option>
117
+              </el-select>
118
+            </el-form-item>
119
+          </el-col>
120
+        </el-row>
121
+      </el-form>
122
+      <span slot="footer" class="dialog-footer">
123
+        <el-button @click="dialogVisible = false">取 消</el-button>
124
+        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
125
+      </span>
126
+    </el-dialog>
127
+  </div>
128
+</template>
129
+
130
+<script>
131
+import { getAllEquimentName, getEditMachine } from "@/api/manage";
132
+export default {
133
+  name: "EditMachineForm",
134
+  props: {
135
+    planData: {
136
+      type: Array,
137
+      default: function() {
138
+        return {
139
+          newPlanid: 0
140
+        };
141
+      }
142
+    },
143
+    planid: Number
144
+  },
145
+  data() {
146
+    return {
147
+      dialogVisible: false,
148
+      DeviceType: [],
149
+      form: {
150
+        device_type: "",
151
+        disinfec_time: "",
152
+        time: [],
153
+        class_time: [],
154
+        way: "",
155
+        machine_disinfectant: "",
156
+        disinfectant_way: "",
157
+        disinfectant: ""
158
+      },
159
+      timeType: [
160
+        { id: 1, name: "周一" },
161
+        { id: 2, name: "周二" },
162
+        { id: 3, name: "周三" },
163
+        { id: 4, name: "周四" },
164
+        { id: 5, name: "周五" },
165
+        { id: 6, name: "周六" },
166
+        { id: 7, name: "周日" }
167
+      ],
168
+      classType: [
169
+        { id: 1, name: "上午" },
170
+        { id: 2, name: "下午" },
171
+        { id: 3, name: "晚上" }
172
+      ],
173
+      // 基表消毒方式
174
+      disinfectType: [{ id: 1, name: "擦拭" }, { id: 2, name: "化学消毒" }],
175
+      // 基表消毒液
176
+      disinfectantType: [
177
+        { id: 1, name: "0.22%季铵盐" },
178
+        { id: 2, name: "500mg/l含氯消毒剂" },
179
+        { id: 3, name: "1000mg/l含氯消毒剂" },
180
+        { id: 4, name: "1500mg/l含氯消毒剂" }
181
+      ],
182
+      // 夜路消毒方式
183
+      sterilizeType: [
184
+        { id: 1, name: "热化学消毒" },
185
+        { id: 2, name: "化学消毒 + 除钙" },
186
+        { id: 3, name: "热化学消毒 + 除钙" },
187
+        { id: 4, name: "热消毒" },
188
+        { id: 5, name: "化学消毒" },
189
+        { id: 6, name: "除钙" },
190
+        { id: 7, name: "清洗" }
191
+      ],
192
+      // 夜路消毒液
193
+      fluidPathType: [
194
+        { id: 1, name: "20%柠檬酸" },
195
+        { id: 2, name: "25%柠檬酸" },
196
+        { id: 3, name: "50%柠檬酸" },
197
+        { id: 4, name: "50%柠檬酸 + 5%次氯酸钠" },
198
+        { id: 5, name: "20%柠檬酸 + 10%冰醋酸" },
199
+        { id: 6, name: "0.2%过氧化乙酸" },
200
+        { id: 7, name: "10%冰醋酸" },
201
+        { id: 8, name: "50%冰醋酸" },
202
+        { id: 9, name: "5%次氯酸钠" }
203
+      ]
204
+    };
205
+  },
206
+  methods: {
207
+    open: function() {
208
+      this.dialogVisible = true;
209
+    },
210
+    getAllEquimentName() {
211
+      getAllEquimentName().then(response => {
212
+        if (response.data.state === 1) {
213
+          var equit = response.data.data.equit;
214
+          console.log("equit", equit);
215
+          this.DeviceType = equit;
216
+        }
217
+      });
218
+    },
219
+    getEditMachine(id) {
220
+      getEditMachine(id).then(response => {
221
+        if (response.data.state === 1) {
222
+        }
223
+      });
224
+    }
225
+  },
226
+  created() {
227
+    this.getAllEquimentName();
228
+    console.log("planid是什么东西===========================", this.newPlanid);
229
+    this.getEditMachine(this.planid);
230
+  },
231
+  mounted() {
232
+    this.newPlanid = this.planid;
233
+  },
234
+  watch: {
235
+    planid(newV, oldV) {
236
+      this.newPlanid = this.planid;
237
+    }
238
+  }
239
+};
240
+</script>
241
+
242
+<style scoped>
243
+</style>

+ 11 - 3
src/xt_pages/management/components/ManageForm.vue View File

@@ -35,7 +35,12 @@
35 35
           </el-col>
36 36
 
37 37
           <el-col :span="8">
38
-            <el-form-item label="机位号:" prop="bed_number" v-show="bedShow">
38
+            <el-form-item
39
+              label="机位号:"
40
+              required
41
+              prop="bed_number"
42
+              v-show="bedShow"
43
+            >
39 44
               <el-select style="width:135px" v-model="form.bed_number">
40 45
                 <el-option
41 46
                   v-for="item in this.bedNumber"
@@ -75,7 +80,7 @@
75 80
         </el-row>
76 81
         <el-row>
77 82
           <el-col :span="8">
78
-            <el-form-item label="设备型号:" prop="unit_type">
83
+            <el-form-item label="设备型号:" required prop="unit_type">
79 84
               <el-input style="width:135px" v-model="form.unit_type"></el-input>
80 85
             </el-form-item>
81 86
           </el-col>
@@ -401,7 +406,9 @@ export default {
401 406
       rules: {
402 407
         serial_number: [{ required: true, message: "请填写序列号" }],
403 408
         device_name: [{ required: true, message: "请填写序列号" }],
404
-        device_type: [{ required: true, message: "请填写设备类型" }]
409
+        device_type: [{ required: true, message: "请填写设备类型" }],
410
+        unit_type: [{ required: true, message: "请填写设备型号" }],
411
+        bed_number: [{ required: true, message: "请填写机位号" }]
405 412
       },
406 413
       DisinfectionShow: false,
407 414
       reverseShow: false,
@@ -452,6 +459,7 @@ export default {
452 459
         this.allShow = false;
453 460
         this.treatShow = false;
454 461
         this.reverseShow = true;
462
+        this.bedShow = true;
455 463
       }
456 464
 
457 465
       if (val === 3) {

+ 432 - 0
src/xt_pages/management/components/MultipleForm.vue View File

@@ -0,0 +1,432 @@
1
+<template>
2
+  <div>
3
+    <el-dialog
4
+      title="综合查询"
5
+      :visible.sync="dialogVisible"
6
+      width="95%"
7
+      center
8
+    >
9
+      <el-form>
10
+        <el-row :gutter="20">
11
+          <el-col :span="6">
12
+            <el-form-item label="透析分区:">
13
+              <el-select style="width:120px" v-model="form.zone">
14
+                <el-option
15
+                  v-for="item in this.DeviceType"
16
+                  :key="item.id"
17
+                  :label="item.name"
18
+                  :value="item.id"
19
+                ></el-option>
20
+              </el-select>
21
+            </el-form-item>
22
+          </el-col>
23
+          <el-col :span="6">
24
+            <el-form-item label="机号:">
25
+              <el-select style="width:120px" v-model="form.device_number">
26
+                <el-option
27
+                  v-for="item in this.Numbers"
28
+                  :key="item.id"
29
+                  :label="item.number"
30
+                  :value="item.id"
31
+                ></el-option>
32
+              </el-select>
33
+            </el-form-item>
34
+          </el-col>
35
+          <el-col :span="6">
36
+            <el-form-item label="设备类型:">
37
+              <el-select style="width:120px" v-model="form.device_type">
38
+                <el-option
39
+                  v-for="item in this.EquitmentType"
40
+                  :key="item.id"
41
+                  :label="item.name"
42
+                  :value="item.id"
43
+                ></el-option>
44
+              </el-select>
45
+            </el-form-item>
46
+          </el-col>
47
+          <el-col :span="6">
48
+            <el-form-item label="设备型号:">
49
+              <el-select style="width:120px" v-model="form.device_model">
50
+                <el-option
51
+                  v-for="item in this.EquitmentName"
52
+                  :key="item.id"
53
+                  :label="item.equitment_name"
54
+                  :value="item.id"
55
+                ></el-option>
56
+              </el-select>
57
+            </el-form-item>
58
+          </el-col>
59
+        </el-row>
60
+        <el-row>
61
+          <el-col :span="6">
62
+            <el-form-item label="使用年限:">
63
+              <el-select style="width:90px" v-model="form.user_year">
64
+                <el-option
65
+                  v-for="item in this.userYear"
66
+                  :key="item.id"
67
+                  :label="item.name"
68
+                  :value="item.id"
69
+                ></el-option>
70
+              </el-select>
71
+            </el-form-item>
72
+          </el-col>
73
+          <el-col :span="10">
74
+            <div class="cell clearfix">
75
+              <label class="title"><span class="name">日期查询</span> : </label>
76
+              <el-date-picker
77
+                size="small"
78
+                clearable
79
+                v-model="form.start_time"
80
+                prefix-icon="el-icon-date"
81
+                :editable="false"
82
+                style="width: 196px;"
83
+                type="date"
84
+                placeholder="选择日期时间"
85
+                align="right"
86
+                format="yyyy-MM-dd"
87
+                value-format="yyyy-MM-dd"
88
+              >
89
+              </el-date-picker>
90
+              <span class="cellLine"> - </span>
91
+              <el-date-picker
92
+                size="small"
93
+                clearable
94
+                v-model="form.end_time"
95
+                prefix-icon="el-icon-date"
96
+                :editable="false"
97
+                style="width: 196px;"
98
+                type="date"
99
+                placeholder="选择日期时间"
100
+                align="right"
101
+                format="yyyy-MM-dd"
102
+                value-format="yyyy-MM-dd"
103
+              >
104
+              </el-date-picker>
105
+            </div>
106
+          </el-col>
107
+          <el-col :span="4">
108
+            <el-form-item label="合计:">
109
+              故障次数
110
+              <span>{{ failure_times }}</span
111
+              >次
112
+              <!-- <el-input style="width:90px"></el-input> -->
113
+            </el-form-item>
114
+          </el-col>
115
+          <el-col :span="4">
116
+            <el-button type="primary" size="medium" @click="getComprehensive()"
117
+              >查询</el-button
118
+            >
119
+          </el-col>
120
+        </el-row>
121
+        <el-row>
122
+          <el-table :data="tableData" border style="width: 100%">
123
+            <el-table-column prop="date" label="序号" width="80" align="center">
124
+              <template slot-scope="scope">
125
+                {{ scope.row.id }}
126
+              </template>
127
+            </el-table-column>
128
+            <el-table-column prop="name" label="分区" width="80" align="center">
129
+              <template slot-scope="scope">
130
+                {{ scope.row.name }}
131
+              </template>
132
+            </el-table-column>
133
+            <el-table-column
134
+              prop="address"
135
+              label="序列号"
136
+              width="80"
137
+              align="center"
138
+            >
139
+              <template slot-scope="scope">
140
+                {{ scope.row.serial_number }}
141
+              </template>
142
+            </el-table-column>
143
+            <el-table-column
144
+              prop="address"
145
+              label="设备类型"
146
+              width="100"
147
+              align="center"
148
+            >
149
+              <template slot-scope="scope">
150
+                {{ scope.row.device_type }}
151
+              </template>
152
+            </el-table-column>
153
+            <el-table-column
154
+              prop="address"
155
+              label="机号"
156
+              width="80"
157
+              align="center"
158
+            >
159
+              <template slot-scope="scope">
160
+                {{ scope.row.bed_number }}
161
+              </template>
162
+            </el-table-column>
163
+            <el-table-column
164
+              prop="address"
165
+              label="设备名称"
166
+              width="100"
167
+              align="center"
168
+            >
169
+              <template slot-scope="scope">
170
+                {{ scope.row.device_name }}
171
+              </template>
172
+            </el-table-column>
173
+            <el-table-column
174
+              prop="address"
175
+              label="设备型号"
176
+              width="100"
177
+              align="center"
178
+            >
179
+              <template slot-scope="scope">
180
+                {{ scope.row.device_type }}
181
+              </template>
182
+            </el-table-column>
183
+            <el-table-column
184
+              prop="address"
185
+              label="启用日期"
186
+              width="100"
187
+              align="center"
188
+            >
189
+              <template slot-scope="scope">
190
+                {{ getTime(scope.row.start_date) }}
191
+              </template>
192
+            </el-table-column>
193
+            <el-table-column
194
+              prop="address"
195
+              label="保修期限"
196
+              width="100"
197
+              align="center"
198
+            >
199
+              <template slot-scope="scope">
200
+                {{ scope.row.guarantee_date }}
201
+              </template>
202
+            </el-table-column>
203
+            <el-table-column
204
+              prop="address"
205
+              label="机器状态"
206
+              width="100"
207
+              align="center"
208
+            >
209
+              <template slot-scope="scope">
210
+                {{ scope.row.machine_status }}
211
+              </template>
212
+            </el-table-column>
213
+            <el-table-column
214
+              prop="address"
215
+              label="报废日期"
216
+              width="100"
217
+              align="center"
218
+            >
219
+              <template slot-scope="scope">
220
+                {{ getTime(scope.row.rubbish_date) }}
221
+              </template>
222
+            </el-table-column>
223
+            <el-table-column
224
+              prop="address"
225
+              label="报废原因"
226
+              width="100"
227
+              align="center"
228
+            >
229
+              <template slot-scope="scope">
230
+                {{ scope.row.rubbish_reason }}
231
+              </template>
232
+            </el-table-column>
233
+            <el-table-column
234
+              prop="address"
235
+              label="使用年限"
236
+              width="100"
237
+              align="center"
238
+            >
239
+              <template slot-scope="scope">
240
+                {{ scope.row.user_year }}
241
+              </template>
242
+            </el-table-column>
243
+            <el-table-column
244
+              prop="address"
245
+              label="工作时长"
246
+              width="100"
247
+              align="center"
248
+            >
249
+              <template slot-scope="scope">
250
+                {{ scope.row.work_time }}
251
+              </template>
252
+            </el-table-column>
253
+            <el-table-column
254
+              prop="address"
255
+              label="使用次数"
256
+              width="100"
257
+              align="center"
258
+            >
259
+              <template slot-scope="scope">
260
+                {{ scope.row.user_total }}
261
+              </template>
262
+            </el-table-column>
263
+            <el-table-column
264
+              prop="address"
265
+              label="故障次数"
266
+              width="100"
267
+              align="center"
268
+            >
269
+              <template slot-scope="scope">
270
+                {{ failure_times }}
271
+              </template>
272
+            </el-table-column>
273
+          </el-table>
274
+        </el-row>
275
+      </el-form>
276
+      <span slot="footer" class="dialog-footer">
277
+        <el-button @click="dialogVisible = false">取 消</el-button>
278
+        <el-button type="primary" @click="dialogVisible = false"
279
+          >确 定</el-button
280
+        >
281
+      </span>
282
+    </el-dialog>
283
+  </div>
284
+</template>
285
+
286
+<script>
287
+import {
288
+  getAllSubregion,
289
+  getAllEquimentName,
290
+  getComprehensive
291
+} from "@/api/manage";
292
+import { uParseTime } from "@/utils/tools";
293
+export default {
294
+  name: "MultipleForm",
295
+  data() {
296
+    return {
297
+      failure_times: 0,
298
+      dialogVisible: false,
299
+      form: {
300
+        zone: "",
301
+        device_number: "",
302
+        device_type: "",
303
+        device_model: "",
304
+        user_year: "",
305
+        start_time: "",
306
+        end_time: ""
307
+      },
308
+      userYear: [
309
+        { id: 0, name: "全部" },
310
+        { id: 1, name: "0~1" },
311
+        { id: 2, name: "1~3" },
312
+        { id: 3, name: "3~10" },
313
+        { id: 4, name: "10年以上" }
314
+      ],
315
+      value1: "",
316
+      value2: "",
317
+      tableData: [],
318
+      EquitmentType: [
319
+        { id: 0, name: "全部" },
320
+        { id: 1, name: "透析机" },
321
+        { id: 2, name: "水处理机" },
322
+        { id: 3, name: "其他" }
323
+      ],
324
+      DeviceType: [{ id: 0, name: "不限" }],
325
+      Numbers: [{ id: 0, number: "不限" }],
326
+      EquitmentName: [{ id: 0, equitment_name: "全部" }],
327
+      runOptions: [
328
+        { value: "1", label: "正常" },
329
+        { value: "2", label: "故障" }
330
+      ]
331
+    };
332
+  },
333
+  methods: {
334
+    open: function() {
335
+      this.dialogVisible = true;
336
+    },
337
+    getAllSubregion() {
338
+      getAllSubregion().then(response => {
339
+        if (response.data.state === 1) {
340
+          var zone = response.data.data.zones;
341
+          var zones = [{ id: 0, name: "不限" }];
342
+          for (let i = 0; i < zone.length; i++) {
343
+            const item = zone[i];
344
+            zones.push({ id: item.id, name: item.name });
345
+          }
346
+          this.DeviceType = zones;
347
+          console.log("zones是什么", zone);
348
+
349
+          var number = response.data.data.numbers;
350
+          var numbers = [{ id: 0, number: "不限" }];
351
+          for (let index = 0; index < number.length; index++) {
352
+            const item = number[index];
353
+            numbers.push({ id: item.id, number: item.number });
354
+          }
355
+          this.Numbers = numbers;
356
+          console.log("numbers", number);
357
+        }
358
+      });
359
+    },
360
+    getAllEquimentName() {
361
+      getAllEquimentName().then(response => {
362
+        if (response.data.state == 1) {
363
+          var equit = response.data.data.equit;
364
+          var equits = [{ id: 0, equitment_name: "全部" }];
365
+          for (let index = 0; index < equit.length; index++) {
366
+            const item = equit[index];
367
+            equits.push({ id: item.id, equitment_name: item.equitment_name });
368
+          }
369
+          this.EquitmentName = equits;
370
+        }
371
+      });
372
+    },
373
+    getComprehensive() {
374
+      const params = {
375
+        zone: this.form.zone,
376
+        number: this.form.device_number,
377
+        devicetype: this.form.device_type,
378
+        year: this.form.user_year,
379
+        starttime: this.form.start_time,
380
+        endtime: this.form.end_time
381
+      };
382
+      getComprehensive(params).then(response => {
383
+        if (response.data.state === 1) {
384
+          var macher = response.data.data.macher;
385
+          for (let index = 0; index < macher.length; index++) {
386
+            if (macher[index].device_type === 1) {
387
+              macher[index].device_type = "透析机";
388
+            }
389
+            if (macher[index].device_type === 2) {
390
+              macher[index].device_type = "水处理机";
391
+            }
392
+            if (macher[index].device_type === 3) {
393
+              macher[index].device_type = "其他";
394
+            }
395
+
396
+            if (macher[index].machine_status === 1) {
397
+              macher[index].machine_status = "使用机";
398
+            }
399
+            if (macher[index].machine_status === 2) {
400
+              macher[index].machine_status = "备用机";
401
+            }
402
+            if (macher[index].machine_status === 3) {
403
+              macher[index].machine_status = "急诊机";
404
+            }
405
+            if (macher[index].machine_status === 4) {
406
+              macher[index].machine_status = "报废机";
407
+            }
408
+
409
+            if (macher[index].start_date === 0) {
410
+              macher[index].start_date = "";
411
+            }
412
+            if (macher[index].rubbish_date === 0) {
413
+              macher[index].rubbish_date = "";
414
+            }
415
+          }
416
+          console.log("macher", macher);
417
+          this.tableData = macher;
418
+        }
419
+      });
420
+    },
421
+    getTime(time) {
422
+      return uParseTime(time, "{y}-{m}-{d}");
423
+    }
424
+  },
425
+  created() {
426
+    this.getAllSubregion();
427
+    this.getAllEquimentName();
428
+  }
429
+};
430
+</script>
431
+
432
+<style scoped></style>

+ 32 - 6
src/xt_pages/management/components/PlanForm.vue View File

@@ -1,6 +1,11 @@
1 1
 <template>
2 2
   <div id="plan-form">
3
-    <el-dialog title="新增计划" :visible.sync="dialogVisible" width="44%" center>
3
+    <el-dialog
4
+      title="新增计划"
5
+      :visible.sync="dialogVisible"
6
+      width="50%"
7
+      center
8
+    >
4 9
       <el-form ref="form" :model="form">
5 10
         <el-row>
6 11
           <el-col :span="10">
@@ -17,7 +22,10 @@
17 22
           </el-col>
18 23
           <el-col :span="10">
19 24
             <el-form-item label="消毒时长:">
20
-              <el-input style="width:135px" v-model="form.disinfec_time"></el-input>
25
+              <el-input
26
+                style="width:135px"
27
+                v-model="form.disinfec_time"
28
+              ></el-input>
21 29
               <span>分钟</span>
22 30
             </el-form-item>
23 31
           </el-col>
@@ -80,7 +88,6 @@
80 88
               <el-select
81 89
                 style="width:135px"
82 90
                 v-model="form.machine_disinfectant"
83
-                @change="changeDeviceType"
84 91
               >
85 92
                 <el-option
86 93
                   v-for="item in this.disinfectantType"
@@ -131,6 +138,9 @@
131 138
 import { getAllEquimentName, savePlan } from "@/api/manage";
132 139
 export default {
133 140
   name: "PlanForm",
141
+  props: {
142
+    equimentid: Number
143
+  },
134 144
   data() {
135 145
     return {
136 146
       dialogVisible: false,
@@ -159,13 +169,19 @@ export default {
159 169
         { id: 2, name: "下午" },
160 170
         { id: 3, name: "晚上" }
161 171
       ],
162
-      disinfectType: [{ id: 1, name: "擦拭" }, { id: 2, name: "化学消毒" }],
172
+      // 基表消毒方式
173
+      disinfectType: [
174
+        { id: 1, name: "擦拭" },
175
+        { id: 2, name: "化学消毒" }
176
+      ],
177
+      // 基表消毒液
163 178
       disinfectantType: [
164 179
         { id: 1, name: "0.22%季铵盐" },
165 180
         { id: 2, name: "500mg/l含氯消毒剂" },
166 181
         { id: 3, name: "1000mg/l含氯消毒剂" },
167 182
         { id: 4, name: "1500mg/l含氯消毒剂" }
168 183
       ],
184
+      // 夜路消毒方式
169 185
       sterilizeType: [
170 186
         { id: 1, name: "热化学消毒" },
171 187
         { id: 2, name: "化学消毒 + 除钙" },
@@ -175,6 +191,7 @@ export default {
175 191
         { id: 6, name: "除钙" },
176 192
         { id: 7, name: "清洗" }
177 193
       ],
194
+      // 夜路消毒液
178 195
       fluidPathType: [
179 196
         { id: 1, name: "20%柠檬酸" },
180 197
         { id: 2, name: "25%柠檬酸" },
@@ -186,7 +203,8 @@ export default {
186 203
         { id: 8, name: "50%冰醋酸" },
187 204
         { id: 9, name: "5%次氯酸钠" }
188 205
       ],
189
-      DeviceType: []
206
+      DeviceType: [],
207
+      planid: 0
190 208
     };
191 209
   },
192 210
   methods: {
@@ -203,6 +221,8 @@ export default {
203 221
       });
204 222
     },
205 223
     savePlan(formName) {
224
+      var equimentid = this.equimentid;
225
+      console.log("equimentid", equimentid);
206 226
       var devicetype = this.form.device_type;
207 227
       var devicetypes = parseInt(devicetype);
208 228
       this.form.device_type = devicetypes;
@@ -222,8 +242,14 @@ export default {
222 242
       var disinfectants = this.form.disinfectant;
223 243
       var disinfectant = parseInt(disinfectants);
224 244
       this.form.disinfectant = disinfectant;
225
-      savePlan(this.form).then(response => {
245
+      savePlan(this.form, this.equimentid).then(response => {
226 246
         if (response.data.state == 1) {
247
+          var msg = response.data.data.msg;
248
+          console.log("msg", msg);
249
+          this.$message.success("保存成功");
250
+          this.dialogVisible = false;
251
+          this.$emit("getAllPlan");
252
+          this.$emit("getAllPlanDetail");
227 253
         }
228 254
       });
229 255
     }

+ 101 - 0
src/xt_pages/management/components/UserForm.vue View File

@@ -0,0 +1,101 @@
1
+<template>
2
+  <div id="user-form">
3
+    <el-row>
4
+      <el-col :span="2">
5
+        <el-checkbox
6
+          :indeterminate="isIndeterminate"
7
+          v-model="checkAll"
8
+          @change="handleCheckAllChange"
9
+          >全选</el-checkbox
10
+        >
11
+      </el-col>
12
+      <el-col :span="2">
13
+        <el-button size="small">删除</el-button>
14
+      </el-col>
15
+      <el-col :span="4">
16
+        <el-form-item label="机号:">
17
+          <el-select style="width:135px" v-model="value">
18
+            <el-option
19
+              v-for="item in this.fluidPathType"
20
+              :key="item.id"
21
+              :label="item.name"
22
+              :value="item.id"
23
+            ></el-option>
24
+          </el-select>
25
+        </el-form-item>
26
+      </el-col>
27
+    </el-row>
28
+  </div>
29
+</template>
30
+
31
+<script>
32
+export default {
33
+  name: "UserForm",
34
+  data() {
35
+    return {
36
+      tableData: [
37
+        {
38
+          date: "2016-05-03",
39
+          name: "王小虎",
40
+          province: "上海",
41
+          city: "普陀区",
42
+          address: "上海市普陀区金沙江路 1518 弄",
43
+          zip: 200333
44
+        },
45
+        {
46
+          date: "2016-05-02",
47
+          name: "王小虎",
48
+          province: "上海",
49
+          city: "普陀区",
50
+          address: "上海市普陀区金沙江路 1518 弄",
51
+          zip: 200333
52
+        },
53
+        {
54
+          date: "2016-05-04",
55
+          name: "王小虎",
56
+          province: "上海",
57
+          city: "普陀区",
58
+          address: "上海市普陀区金沙江路 1518 弄",
59
+          zip: 200333
60
+        },
61
+        {
62
+          date: "2016-05-01",
63
+          name: "王小虎",
64
+          province: "上海",
65
+          city: "普陀区",
66
+          address: "上海市普陀区金沙江路 1518 弄",
67
+          zip: 200333
68
+        },
69
+        {
70
+          date: "2016-05-08",
71
+          name: "王小虎",
72
+          province: "上海",
73
+          city: "普陀区",
74
+          address: "上海市普陀区金沙江路 1518 弄",
75
+          zip: 200333
76
+        },
77
+        {
78
+          date: "2016-05-06",
79
+          name: "王小虎",
80
+          province: "上海",
81
+          city: "普陀区",
82
+          address: "上海市普陀区金沙江路 1518 弄",
83
+          zip: 200333
84
+        },
85
+        {
86
+          date: "2016-05-07",
87
+          name: "王小虎",
88
+          province: "上海",
89
+          city: "普陀区",
90
+          address: "上海市普陀区金沙江路 1518 弄",
91
+          zip: 200333
92
+        }
93
+      ],
94
+      fluidPathType: [{ id: 1, name: "zs" }],
95
+      value: ""
96
+    };
97
+  }
98
+};
99
+</script>
100
+
101
+<style scoped></style>

File diff suppressed because it is too large
+ 1114 - 115
src/xt_pages/management/home.vue


+ 7 - 23
src/xt_pages/management/index.vue View File

@@ -9,8 +9,7 @@
9 9
         icon="el-icon-circle-plus-outline"
10 10
         size="small"
11 11
         @click="AddManage()"
12
-        >新增</el-button
13
-      >
12
+      >新增</el-button>
14 13
     </div>
15 14
     <div class="app-container">
16 15
       <div class="cell clearfix">
@@ -27,8 +26,7 @@
27 26
           icon="el-icon-search"
28 27
           size="small"
29 28
           @click="seahcerMacherInfo()"
30
-          >搜索</el-button
31
-        >
29
+        >搜索</el-button>
32 30
       </div>
33 31
 
34 32
       <div class="cell clearfix">
@@ -42,9 +40,7 @@
42 40
               v-for="item in this.zones"
43 41
               :key="item.id"
44 42
               @click="selectSchedulType(item.id)"
45
-            >
46
-              {{ item.name }}
47
-            </li>
43
+            >{{ item.name }}</li>
48 44
           </ul>
49 45
         </div>
50 46
       </div>
@@ -60,9 +56,7 @@
60 56
               v-for="item in this.DeviceType"
61 57
               :key="item.id"
62 58
               @click="selectSchedulTypeOne(item.id)"
63
-            >
64
-              {{ item.name }}
65
-            </li>
59
+            >{{ item.name }}</li>
66 60
           </ul>
67 61
         </div>
68 62
       </div>
@@ -78,9 +72,7 @@
78 72
               v-for="item in this.AllStatus"
79 73
               :key="item.id"
80 74
               @click="selectSchedulTypeTwo(item.id)"
81
-            >
82
-              {{ item.name }}
83
-            </li>
75
+            >{{ item.name }}</li>
84 76
           </ul>
85 77
         </div>
86 78
       </div>
@@ -122,12 +114,7 @@
122 114
 
123 115
         <el-table-column label="操作" align="center">
124 116
           <template slot-scope="scope">
125
-            <el-button
126
-              @click="handleClick(scope.row.id, scope.$index)"
127
-              type="text"
128
-              size="small"
129
-              >查看</el-button
130
-            >
117
+            <el-button @click="handleClick(scope.row.id, scope.$index)" type="text" size="small">查看</el-button>
131 118
           </template>
132 119
         </el-table-column>
133 120
       </el-table>
@@ -143,10 +130,7 @@
143 130
         :total="total"
144 131
       ></el-pagination>
145 132
       <!-- 新增设备 -->
146
-      <manage-form
147
-        ref="manageForm"
148
-        v-on:getAllMachineInfo="getAllMachineInfo"
149
-      ></manage-form>
133
+      <manage-form ref="manageForm" v-on:getAllMachineInfo="getAllMachineInfo"></manage-form>
150 134
     </div>
151 135
   </div>
152 136
 </template>

+ 7 - 6
src/xt_pages/workforce/components/tableData.vue View File

@@ -656,10 +656,11 @@
656 656
                 theSchedules.forEach(function(schedule, sindex) {
657 657
                   if (zone.jihao_id == schedule.bed_id) {
658 658
                     // if(zone.zone_id == schedule.partition_id && zone.jihao_id == schedule.bed_id) {
659
-
660 659
                     var weekPath = that.weekPath(schedule.schedule_week, schedule.schedule_type)
661 660
 
662 661
                     if (weekPath.length == 2) {
662
+                      console.log(schedule)
663
+
663 664
                       var weekPathKey = weekPath[0] + '_' + weekPath[1]
664 665
                       that.scheduleZone[index][weekPathKey] = {
665 666
                         schedule_id: schedule.id,
@@ -1381,7 +1382,7 @@
1381 1382
       }, getDialysisDate: function(row) {
1382 1383
         let week = ''
1383 1384
         switch (row.schedule_week) {
1384
-          case 0:
1385
+          case 7:
1385 1386
             week = '周日'
1386 1387
             break
1387 1388
           case 1:
@@ -1528,18 +1529,18 @@
1528 1529
     height: 15px;
1529 1530
   }
1530 1531
   .el-table td, .el-table th.is-leaf,.el-table--border, .el-table--group{
1531
-  border-color: #d0d3da; 
1532
+  border-color: #d0d3da;
1532 1533
 }
1533 1534
 .el-table--border::after, .el-table--group::after, .el-table::before{
1534 1535
   background-color: #d0d3da;
1535 1536
 }
1536 1537
 .el-table--border th{
1537
-  border-color: #d0d3da; 
1538
+  border-color: #d0d3da;
1538 1539
 }
1539 1540
 .el-table--border td{
1540
-  border-color: #d0d3da; 
1541
+  border-color: #d0d3da;
1541 1542
 }
1542 1543
 .el-table td{
1543
-  border-color: #d0d3da; 
1544
+  border-color: #d0d3da;
1544 1545
 }
1545 1546
 </style>