Ver código fonte

月亮湾bug修改

XMLWAN 4 anos atrás
pai
commit
29bdca7a5d

+ 11 - 4
src/api/manage.js Ver arquivo

@@ -58,8 +58,8 @@ export function getAllMachineTwo(zoneid, deviceid) {
58 58
     deviceid: deviceid
59 59
   };
60 60
   return request({
61
-    url: '/api/management/getallmachinetwo',
62
-    method: 'Get',
61
+    url: "/api/management/getallmachinetwo",
62
+    method: "Get",
63 63
     params: params
64 64
   });
65 65
 }
@@ -73,7 +73,6 @@ export function getMachineDetailById(id, params) {
73 73
 }
74 74
 
75 75
 export function UpdateMachineInfo(data) {
76
-  console.log("data", data);
77 76
   return request({
78 77
     url: "/api/management/updatemachineinfo",
79 78
     method: "Post",
@@ -82,7 +81,6 @@ export function UpdateMachineInfo(data) {
82 81
 }
83 82
 
84 83
 export function UpdateMachineInfoTwo(data) {
85
-  console.log("data", data);
86 84
   return request({
87 85
     url: "/api/management/updatemachineinfotwo",
88 86
     method: "post",
@@ -394,6 +392,7 @@ export function EditRepair(id, params) {
394 392
 }
395 393
 
396 394
 export function UpdateRepair(data) {
395
+  console.log("data-----", data);
397 396
   return request({
398 397
     url: "/api/manage/updaterepair",
399 398
     method: "Post",
@@ -703,3 +702,11 @@ export function getTimeBeteen(equitid, todaytime) {
703 702
     params: params
704 703
   });
705 704
 }
705
+
706
+export function DeleteImages(id,params) {
707
+  return request({
708
+    url: "/api/manage/deleteimages?id=" + id,
709
+    method: "delete",
710
+    params: params
711
+  });
712
+}

+ 127 - 41
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue Ver arquivo

@@ -43,7 +43,7 @@
43 43
                   <td width="50">年 龄:</td>
44 44
                   <td width="180">
45 45
                     <div class="under-line">
46
-                      &nbsp;{{ getAge(record.patient) }}
46
+                      &nbsp;{{ checkIdCardNo(record.patient.id_card_no) }}
47 47
                     </div>
48 48
                   </td>
49 49
                   <td width="80">岁</td>
@@ -290,44 +290,112 @@
290 290
                           >
291 291
                         </td>
292 292
                         <td style="text-align:left;margin-left:15px">
293
-                          透析型号:
293
+                          透析型号:
294 294
                           <span class="under-line"
295
+                               v-if="
296
+                         record.prescription.mode_id != 3 &&
297
+                         record.prescription.mode_id != 4 &&
298
+                         record.prescription.mode_id != 12 &&
299
+                         record.prescription.mode_id != 9
300
+                      "
295 301
                           >&nbsp;{{
296
-                              record.assessment_before_dislysis.machine_type
297
-                                ? record.assessment_before_dislysis.machine_type
302
+                              record.prescription.dialyzer_perfusion_apparatus
303
+                                ? record.prescription.dialyzer_perfusion_apparatus
298 304
                                 : '/'
299 305
                             }}</span
300 306
                           >
307
+                          <span v-else  class="under-line" >
308
+                            /
309
+                          </span>
301 310
                         </td>
302 311
                         <td style="text-align:left;margin-left:15px">
303
-                          预脱:
304
-                          <span class="under-line"
312
+                         灌流器型号: <span class="under-line"
313
+                           v-if="
314
+                         record.prescription.mode_id == 3 ||
315
+                         record.prescription.mode_id == 4 ||
316
+                         record.prescription.mode_id == 12 ||
317
+                         record.prescription.mode_id == 9
318
+                      "
305 319
                           >&nbsp;{{
306
-                              record.prescription.target_ultrafiltration
307
-                                ? record.prescription.target_ultrafiltration
308
-                                : '/'
309
-                            }}</span
310
-                          >L
320
+                            record.prescription.dialyzer_perfusion_apparatus
321
+                          ? record.prescription.dialyzer_perfusion_apparatus
322
+                          : "/"
323
+                      }}</span
324
+                    >
325
+                      <span v-else class="under-line" >
326
+                        /
327
+                      </span>
311 328
                         </td>
312 329
                         <td style="text-align:left;margin-left:15px">
313
-                          治疗时间:
314
-                          <span class="under-line"
315
-                          >&nbsp;{{
316
-                              record.assessment_after_dislysis
317
-                                .actual_treatment_hour
318
-                                ? record.assessment_after_dislysis
319
-                                    .actual_treatment_hour
320
-                                : '/'
321
-                            }}小时{{
322
-                              record.assessment_after_dislysis
323
-                                .actual_treatment_minute
324
-                                ? record.assessment_after_dislysis
325
-                                    .actual_treatment_minute
326
-                                : '/'
327
-                            }}分钟</span
328
-                          >
330
+                          血管通路:
331
+                           <span class="under-line"
332
+                          >&nbsp
333
+                           {{
334
+                            QueryPartById(
335
+                              record.assessment_before_dislysis &&
336
+                                record.assessment_before_dislysis
337
+                                  .blood_access_part_opera_id
338
+                                ? record.assessment_before_dislysis
339
+                                    .blood_access_part_opera_id
340
+                                : 0
341
+                            )
342
+                          }}
343
+                          {{
344
+                            record.assessment_before_dislysis &&
345
+                            record.assessment_before_dislysis
346
+                              .blood_access_part_opera_name
347
+                              ? record.assessment_before_dislysis
348
+                                  .blood_access_part_opera_name
349
+                              : ""
350
+                          }}
351
+                          </span
352
+                    >
329 353
                         </td>
330 354
                       </tr>
355
+                      <tr>
356
+                        <td style="text-align:left;margin-left:15px">
357
+                    干体重:
358
+                    <span class="under-line"
359
+                      >&nbsp;{{
360
+                        record.assessment_before_dislysis.dry_weight ? record.assessment_before_dislysis.dry_weight.dry_weight : "/"
361
+                      }}</span
362
+                    >kg
363
+                  </td>
364
+                   <td style="text-align:left;margin-left:15px">
365
+                    透前体重:
366
+                    <span class="under-line"
367
+                      >&nbsp;{{
368
+                        record.assessment_before_dislysis.weight_before
369
+                          ? record.assessment_before_dislysis.weight_before
370
+                          : "/"
371
+                      }}</span
372
+                    >kg
373
+                  </td>
374
+                      <td style="text-align:left;margin-left:15px">
375
+                    预脱:
376
+                    <span class="under-line"
377
+                      >&nbsp;{{
378
+                        record.prescription.target_ultrafiltration
379
+                          ? record.prescription.target_ultrafiltration
380
+                          : "/"
381
+                      }}</span
382
+                    >L
383
+                  </td>
384
+                  <td style="text-align:left;margin-left:15px">
385
+                    治疗时间:
386
+                    <span class="under-line"
387
+                      >&nbsp;{{
388
+                        record.prescription.dialysis_duration_hour
389
+                          ? record.prescription.dialysis_duration_hour
390
+                          : "0"
391
+                      }}小时{{
392
+                        record.prescription.dialysis_duration_minute
393
+                          ? record.prescription.dialysis_duration_minute
394
+                          : "0"
395
+                      }}分钟</span
396
+                    >
397
+                  </td>
398
+                      </tr>
331 399
                       <tr>
332 400
                         <td style="text-align:left;margin-left:15px">
333 401
                           血流量:
@@ -612,6 +680,10 @@
612 680
                     <p style="height:20px;line-height:20px">呼吸</p>
613 681
                     <p style="height:20px;line-height:20px">次/分</p>
614 682
                   </th>
683
+                  <th style="min-width:60px">
684
+                    <p style="height:20px;line-height:20px">血流量</p>
685
+                    <p style="height:20px;line-height:20px">ml/min</p>
686
+                  </th>
615 687
                   <th style="min-width:60px">
616 688
                     <p style="height:20px;line-height:20px">超滤量</p>
617 689
                     <p style="height:20px;line-height:20px">L</p>
@@ -628,7 +700,7 @@
628 700
                     <p style="height:20px;line-height:20px">跨膜压</p>
629 701
                     <p style="height:20px;line-height:20px">(mmHg)</p>
630 702
                   </th>
631
-                  <th style="min-width:60px">
703
+                  <th style="min-width:260px">
632 704
                     <p style="height:20px;line-height:20px">病情变化</p>
633 705
                   </th>
634 706
                 </tr>
@@ -650,9 +722,10 @@
650 722
                   </td>
651 723
                   <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : '/' }}</td>
652 724
                   <td>{{ monitor.breathing_rate ? monitor.breathing_rate : '/' }}</td>
725
+                  <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:"/"}}</td>
653 726
                   <td>
654 727
                     {{
655
-                    monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'
728
+                    monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '/'
656 729
                     }}
657 730
                   </td>
658 731
                   <td>
@@ -860,7 +933,10 @@
860 933
                       </td>
861 934
                       <td style="text-align:left;margin-left:15px;width:25%">
862 935
                         核对护士:
863
-                        <span class="under-line">&nbsp; </span>
936
+                        <span class="under-line">&nbsp;
937
+                        <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
938
+                        <img class="es-img" :src="setAdminUserES(record.check, 'modifier')" alt="" srcset=""> 
939
+                        </span>
864 940
                       </td>
865 941
                       <tr>
866 942
                         <td style="text-align:left;margin-left:15px">
@@ -895,7 +971,7 @@
895 971
                           <span class="under-line"
896 972
                           >&nbsp;{{ record.dialysis_order.systolic_blood_pressure }}/{{
897 973
                     record.dialysis_order.diastolic_blood_pressure
898
-                  }}</span
974
+                  }}&nbsp;mmHg</span
899 975
                           >
900 976
                         </td>
901 977
                         <td style="text-align:left;margin-left:15px">
@@ -915,7 +991,7 @@
915 991
                         </td>
916 992
                         <td style="text-align:left;margin-left:15px">
917 993
                           实际超滤量:
918
-                          <span class="under-line">&nbsp;{{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:'/'}}</span>
994
+                          <span class="under-line">&nbsp;{{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:'/'}}&nbsp;L</span>
919 995
                         </td>
920 996
                       </tr>
921 997
                       <tr>
@@ -956,15 +1032,7 @@
956 1032
                         </td>
957 1033
                         <td style="text-align:left;margin-left:15px">
958 1034
                           透析器凝血:
959
-                          <span class="under-line" v-if="record.assessment_after_dislysis.dialyzer === 0">&nbsp;/</span>
960
-                          <span class="under-line"
961
-                                v-if="record.assessment_after_dislysis.dialyzer === 1">&nbsp;0级</span>
962
-                          <span class="under-line"
963
-                                v-if="record.assessment_after_dislysis.dialyzer === 2">&nbsp;1级</span>
964
-                          <span class="under-line"
965
-                                v-if="record.assessment_after_dislysis.dialyzer === 3">&nbsp;2级</span>
966
-                          <span class="under-line"
967
-                                v-if="record.assessment_after_dislysis.dialyzer === 4">&nbsp;3级</span>
1035
+                          <span class="under-line">{{record.assessment_after_dislysis.cruor?record.assessment_after_dislysis.cruor:"/"}}</span>
968 1036
                         </td>
969 1037
                       </tr>
970 1038
                       <td style="text-align:left;margin-left:15px;width:200px">
@@ -1482,6 +1550,24 @@
1482 1550
           return val.age
1483 1551
         }
1484 1552
       },
1553
+     checkIdCardNo(val) {
1554
+      var thisLen = val.length;
1555
+      var birth = "";
1556
+      if (thisLen == 15) {
1557
+        birth = "19" + val.substr(6, 6);
1558
+      } else {
1559
+        birth = val.substr(6, 8);
1560
+      }
1561
+      var birthTwo =
1562
+        birth.substr(0, 4) +
1563
+        "-" +
1564
+        birth.substr(4, 2) +
1565
+        "-" +
1566
+        birth.substr(6, 2);
1567
+
1568
+      var age = jsGetAge(birthTwo, "-");
1569
+      return age;
1570
+    },
1485 1571
       newAdviceGroupObject: function() {
1486 1572
         return Object.assign(
1487 1573
           {},

Diferenças do arquivo suprimidas por serem muito extensas
+ 509 - 395
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue


+ 2 - 2
src/xt_pages/management/components/MultipleForm.vue Ver arquivo

@@ -384,7 +384,7 @@ export default {
384 384
       getComprehensive(params).then(response => {
385 385
         if (response.data.state === 1) {
386 386
           var macher = response.data.data.macher
387
-          console.log('设备型号5555', macher)
387
+        
388 388
           for (let index = 0; index < macher.length; index++) {
389 389
             if (macher[index].device_type === 1) {
390 390
               macher[index].device_type = '透析机'
@@ -428,7 +428,7 @@ export default {
428 428
       getTotalCount().then(response => {
429 429
         if (response.data.state === 1) {
430 430
           var total = response.data.data.total
431
-          console.log('total声优', total)
431
+     
432 432
           this.failure_times = total
433 433
         }
434 434
       })

+ 94 - 88
src/xt_pages/management/components/PlanForm.vue Ver arquivo

@@ -137,9 +137,9 @@
137 137
 </template>
138 138
 
139 139
 <script>
140
-import { getAllEquimentName, savePlan, getAllEquitType } from '@/api/manage'
140
+import { getAllEquimentName, savePlan, getAllEquitType } from "@/api/manage";
141 141
 export default {
142
-  name: 'PlanForm',
142
+  name: "PlanForm",
143 143
   props: {
144 144
     equimentid: Number
145 145
   },
@@ -147,8 +147,8 @@ export default {
147 147
     return {
148 148
       dialogVisible: false,
149 149
       form: {
150
-        device_type: '',
151
-        disinfec_time: '',
150
+        device_type: "",
151
+        disinfec_time: "",
152 152
         time: [],
153 153
         class_time: [],
154 154
         way: 0,
@@ -158,126 +158,132 @@ export default {
158 158
       },
159 159
       value: [],
160 160
       timeType: [
161
-        { id: 1, name: '周一' },
162
-        { id: 2, name: '周二' },
163
-        { id: 3, name: '周三' },
164
-        { id: 4, name: '周四' },
165
-        { id: 5, name: '周五' },
166
-        { id: 6, name: '周六' },
167
-        { id: 7, name: '周日' }
161
+        { id: 1, name: "周一" },
162
+        { id: 2, name: "周二" },
163
+        { id: 3, name: "周三" },
164
+        { id: 4, name: "周四" },
165
+        { id: 5, name: "周五" },
166
+        { id: 6, name: "周六" },
167
+        { id: 7, name: "周日" }
168 168
       ],
169 169
       classType: [
170
-        { id: 1, name: '上午' },
171
-        { id: 2, name: '下午' },
172
-        { id: 3, name: '晚上' }
170
+        { id: 1, name: "上午" },
171
+        { id: 2, name: "下午" },
172
+        { id: 3, name: "晚上" }
173 173
       ],
174 174
       // 机表消毒方式
175 175
       disinfectType: [
176
-        { id: 0, name: '/' },
177
-        { id: 1, name: '擦拭' },
178
-        { id: 2, name: '化学消毒' }
176
+        { id: 0, name: "/" },
177
+        { id: 1, name: "擦拭" },
178
+        { id: 2, name: "化学消毒" }
179 179
       ],
180 180
       // 基表消毒液
181 181
       disinfectantType: [
182
-        { id: 0, name: '/' },
183
-        { id: 1, name: '0.22%季铵盐' },
184
-        { id: 2, name: '500mg/l含氯消毒剂' },
185
-        { id: 3, name: '1000mg/l含氯消毒剂' },
186
-        { id: 4, name: '1500mg/l含氯消毒剂' }
182
+        { id: 0, name: "/" },
183
+        { id: 1, name: "0.22%季铵盐" },
184
+        { id: 2, name: "500mg/l含氯消毒剂" },
185
+        { id: 3, name: "1000mg/l含氯消毒剂" },
186
+        { id: 4, name: "1500mg/l含氯消毒剂" }
187 187
       ],
188 188
       // 夜路消毒方式
189 189
       sterilizeType: [
190
-        { id: 0, name: '/' },
191
-        { id: 1, name: '热化学消毒' },
192
-        { id: 2, name: '化学消毒 + 除钙' },
193
-        { id: 3, name: '热化学消毒 + 除钙' },
194
-        { id: 4, name: '热消毒' },
195
-        { id: 5, name: '化学消毒' },
196
-        { id: 6, name: '除钙' },
197
-        { id: 7, name: '清洗' }
190
+        { id: 0, name: "/" },
191
+        { id: 1, name: "热化学消毒" },
192
+        { id: 2, name: "化学消毒 + 除钙" },
193
+        { id: 3, name: "热化学消毒 + 除钙" },
194
+        { id: 4, name: "热消毒" },
195
+        { id: 5, name: "化学消毒" },
196
+        { id: 6, name: "除钙" },
197
+        { id: 7, name: "清洗" }
198 198
       ],
199 199
       // 夜路消毒液
200 200
       fluidPathType: [
201
-        { id: 0, name: '/' },
202
-        { id: 1, name: '20%柠檬酸' },
203
-        { id: 2, name: '25%柠檬酸' },
204
-        { id: 3, name: '50%柠檬酸' },
205
-        { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
206
-        { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
207
-        { id: 6, name: '0.2%过氧化乙酸' },
208
-        { id: 7, name: '10%冰醋酸' },
209
-        { id: 8, name: '50%冰醋酸' },
210
-        { id: 9, name: '5%次氯酸钠' }
201
+        { id: 0, name: "/" },
202
+        { id: 1, name: "20%柠檬酸" },
203
+        { id: 2, name: "25%柠檬酸" },
204
+        { id: 3, name: "50%柠檬酸" },
205
+        { id: 4, name: "50%柠檬酸 + 5%次氯酸钠" },
206
+        { id: 5, name: "20%柠檬酸 + 10%冰醋酸" },
207
+        { id: 6, name: "0.2%过氧化乙酸" },
208
+        { id: 7, name: "10%冰醋酸" },
209
+        { id: 8, name: "50%冰醋酸" },
210
+        { id: 9, name: "5%次氯酸钠" }
211 211
       ],
212 212
       DeviceType: [],
213 213
       planid: 0,
214 214
       plandata: 0,
215 215
       rules: {
216
-        device_type: [{ required: true, message: '请输入设备型号' }],
217
-        disinfec_time: [{ required: true, message: '请输入消毒时长' }],
218
-        time: [{ required: true, message: '请输入时间' }],
219
-        class_time: [{ required: true, message: '请输入班次' }]
216
+        device_type: [{ required: true, message: "请输入设备型号" }],
217
+        disinfec_time: [{ required: true, message: "请输入消毒时长" }],
218
+        time: [{ required: true, message: "请输入时间" }],
219
+        class_time: [{ required: true, message: "请输入班次" }]
220 220
       }
221
-    }
221
+    };
222 222
   },
223 223
   methods: {
224 224
     open: function() {
225
-      this.dialogVisible = true
225
+      this.dialogVisible = true;
226 226
     },
227 227
     getAllEquimentName() {
228 228
       getAllEquimentName().then(response => {
229 229
         if (response.data.state === 1) {
230
-          var equit = response.data.data.equit
230
+          var equit = response.data.data.equit;
231 231
           // console.log('equit', equit);
232 232
           // this.DeviceType = equit;
233 233
         }
234
-      })
234
+      });
235 235
     },
236 236
     savePlan(formName) {
237
-      var equimentid = this.equimentid
237
+      var equimentid = this.equimentid;
238 238
       // console.log('equimentid', equimentid);
239
-      var devicetype = this.form.device_type
240
-      var devicetypes = parseInt(devicetype)
241
-      this.form.device_type = devicetypes
239
+      console.log("数据---", this.form.device_type);
240
+      if (this.form.device_type === "") {
241
+        this.form.device_type === "";
242
+      }
243
+      if (this.form.device_type !== "") {
244
+        var devicetype = this.form.device_type;
245
+        var devicetypes = parseInt(devicetype);
246
+        this.form.device_type = devicetypes;
247
+      }
242 248
 
243
-      var ways = this.form.way
244
-      var way = parseInt(ways)
245
-      this.form.way = way
249
+      var ways = this.form.way;
250
+      var way = parseInt(ways);
251
+      this.form.way = way;
246 252
 
247
-      var machinedisinfectant = this.form.machine_disinfectant
248
-      var machinedisinfectants = parseInt(machinedisinfectant)
249
-      this.form.machine_disinfectant = machinedisinfectants
253
+      var machinedisinfectant = this.form.machine_disinfectant;
254
+      var machinedisinfectants = parseInt(machinedisinfectant);
255
+      this.form.machine_disinfectant = machinedisinfectants;
250 256
 
251
-      var disinfectantways = this.form.disinfectant_way
252
-      var disinfectantway = parseInt(disinfectantways)
253
-      this.form.disinfectant_way = disinfectantway
257
+      var disinfectantways = this.form.disinfectant_way;
258
+      var disinfectantway = parseInt(disinfectantways);
259
+      this.form.disinfectant_way = disinfectantway;
254 260
 
255
-      var disinfectants = this.form.disinfectant
256
-      var disinfectant = parseInt(disinfectants)
257
-      this.form.disinfectant = disinfectant
261
+      var disinfectants = this.form.disinfectant;
262
+      var disinfectant = parseInt(disinfectants);
263
+      this.form.disinfectant = disinfectant;
258 264
       this.$refs[formName].validate(valid => {
259 265
         if (valid) {
260 266
           savePlan(this.form, this.equimentid).then(response => {
261 267
             if (response.data.state === 1) {
262
-              var msg = response.data.data.msg
268
+              var msg = response.data.data.msg;
263 269
               // console.log('msg', msg);
264
-              this.$message.success('保存成功')
265
-              this.form.device_type = ''
266
-              this.form.disinfec_time = []
267
-              this.form.time = []
268
-              this.form.class_time = ''
269
-              this.form.way = 0
270
-              this.form.machine_disinfectant = 0
271
-              this.form.disinfectant_way = 0
272
-              this.form.disinfectant = 0
273
-              this.dialogVisible = false
274
-              this.$emit('getAllPlan')
275
-              this.$emit('getAllPlanDetail')
270
+              this.$message.success("保存成功");
271
+              this.form.device_type = "";
272
+              this.form.disinfec_time = [];
273
+              this.form.time = [];
274
+              this.form.class_time = "";
275
+              this.form.way = 0;
276
+              this.form.machine_disinfectant = 0;
277
+              this.form.disinfectant_way = 0;
278
+              this.form.disinfectant = 0;
279
+              this.dialogVisible = false;
280
+              this.$emit("getAllPlan");
281
+              this.$emit("getAllPlanDetail");
276 282
               // 如果保存成功通过状态值改变父组键表格的值
277
-              this.plandata = 1
278
-              this.$emit('func', this.plandata)
283
+              this.plandata = 1;
284
+              this.$emit("func", this.plandata);
279 285
             } else {
280
-              this.$message.error('该消毒计划已存在')
286
+              this.$message.error("该消毒计划已存在");
281 287
               // this.form.disinfec_time = "";
282 288
               // this.form.time = [];
283 289
               // this.form.class_time = [];
@@ -286,24 +292,24 @@ export default {
286 292
               // this.form.disinfectant_way = 0;
287 293
               // this.form.disinfectant = 0;
288 294
             }
289
-          })
295
+          });
290 296
         }
291
-      })
297
+      });
292 298
     },
293 299
     getAllEquitType() {
294 300
       getAllEquitType().then(response => {
295 301
         if (response.data.state === 1) {
296
-          var equitname = response.data.data.mode
297
-          this.DeviceType = equitname
302
+          this.DeviceType = response.data.data.mode;
303
+          console.log("类型", this.DeviceType);
298 304
         }
299
-      })
305
+      });
300 306
     }
301 307
   },
302 308
   created() {
303
-    this.getAllEquimentName()
304
-    this.getAllEquitType()
309
+    this.getAllEquimentName();
310
+    this.getAllEquitType();
305 311
   }
306
-}
312
+};
307 313
 </script>
308 314
 
309 315
 <style lang="scss">

+ 1 - 1
src/xt_pages/management/components/QualityForm.vue Ver arquivo

@@ -1691,7 +1691,7 @@ export default {
1691 1691
           }
1692 1692
           this.tableData = cultures;
1693 1693
           var dialysate = response.data.data.dialysate
1694
-          console.log("dialysate", dialysate);
1694
+          //console.log("dialysate", dialysate);
1695 1695
           for (let index = 0; index < dialysate.length; index++) {
1696 1696
             if (dialysate[index].specimenb === 0) {
1697 1697
               dialysate[index].specimenb = "";

+ 75 - 51
src/xt_pages/management/components/RepairForm.vue Ver arquivo

@@ -226,7 +226,7 @@
226 226
     <el-dialog
227 227
       title="编辑维修记录"
228 228
       :visible.sync="dialogVisible"
229
-      width="65%"
229
+      width="75%"
230 230
       center
231 231
     >
232 232
       <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
@@ -371,7 +371,7 @@
371 371
             </el-form-item>
372 372
             <a class="el-upload-list__item-name">
373 373
               <i style="color:#0000EE">
374
-                <a @click="toLink()">{{ filename }}</a
374
+                <a :href="guaForm.images" target="_blank">{{ filename }}</a
375 375
                 ><span v-show="classShow" @click="hiddenShow"
376 376
                   ><li class="el-icon-circle-close"></li
377 377
                 ></span>
@@ -426,10 +426,12 @@ import {
426 426
   UpdateRepair,
427 427
   DeleteRepair,
428 428
   queryRepair,
429
-  DeleteRepairs
429
+  DeleteRepairs,
430
+  DeleteImages
430 431
 } from "@/api/manage";
431 432
 import { uParseTime } from "@/utils/tools";
432 433
 import { getFileExtension } from "@/utils/tools";
434
+import { getToken } from "@/api/qiniu";
433 435
 export default {
434 436
   name: "RepairForm",
435 437
   data() {
@@ -515,7 +517,7 @@ export default {
515 517
       getAllRepair(this.limit, this.page).then(response => {
516 518
         if (response.data.state === 1) {
517 519
           var repair = response.data.data.repair;
518
-          console.log("repair是", repair);
520
+
519 521
           // eslint-disable-next-line no-unused-vars
520 522
           var total = response.data.data.total;
521 523
           this.total = total;
@@ -585,24 +587,11 @@ export default {
585 587
       EditRepair(id).then(response => {
586 588
         if (response.data.state === 1) {
587 589
           var repair = response.data.data.repair;
588
-          this.classShow = true;
589 590
           console.log("repair", repair);
590
-          this.guaForm.guarantee_date = uParseTime(
591
-            repair.guarantee_date,
592
-            "{y}-{m}-{d}"
593
-          );
594
-          this.guaForm.start_time = uParseTime(
595
-            repair.start_time,
596
-            "{y}-{m}-{d} {h}:{i}"
597
-          );
598
-          this.guaForm.arrive_time = uParseTime(
599
-            repair.arrive_time,
600
-            "{y}-{m}-{d} {h}:{i}"
601
-          );
602
-          this.guaForm.finish_time = uParseTime(
603
-            repair.finish_time,
604
-            "{y}-{m}-{d} {h}:{i}"
605
-          );
591
+          this.guaForm.guarantee_date = this.getTime(repair.guarantee_date);
592
+          this.guaForm.start_time = this.getTimeTwo(repair.start_time);
593
+          this.guaForm.arrive_time = this.getTimeTwo(repair.arrive_time);
594
+          this.guaForm.finish_time = this.getTimeTwo(repair.finish_time);
606 595
           this.guaForm.total_distance = repair.total_distance;
607 596
           this.guaForm.failure_stage = repair.failure_stage;
608 597
           this.guaForm.fault_description = repair.fault_description;
@@ -614,29 +603,38 @@ export default {
614 603
           this.guaForm.code_information = repair.code_information;
615 604
           this.guaForm.id = repair.id;
616 605
           this.filename = repair.image_name;
606
+          if (repair.image_name === "") {
607
+            this.classShow = false;
608
+          }
609
+          if (repair.image_name !== "") {
610
+            this.classShow = true;
611
+          }
617 612
         }
618 613
       });
619 614
     },
620
-    handleSuccess(res, file, fileList) {
621
-      this.guaForm.images = this.qiniuDomain + res.url;
622
-      console.log("图片上传", this.guaForm.images);
623
-      this.$refs.upload.clearFiles();
624
-      this.filename = file.name;
625
-      this.guaForm.image_name = file.name;
626
-    },
627 615
     beforeUploadFile(file) {
616
+      var testmsg = file.name.substring(file.name.lastIndexOf(".") + 1);
617
+      const extension =
618
+        testmsg === "jpg" ||
619
+        testmsg === "JPG" ||
620
+        testmsg === "png" ||
621
+        testmsg === "PNG" ||
622
+        testmsg === "gif" ||
623
+        testmsg === "GIF";
624
+      if (!extension) {
625
+        // eslint-disable-next-line no-mixed-spaces-and-tabs
626
+        this.$message({
627
+          // eslint-disable-next-line no-mixed-spaces-and-tabs
628
+          message: "上传文件只能是jpg或者png或者gif格式!",
629
+          type: "error"
630
+        });
631
+        return false; // 必须加上return false; 才能阻止
632
+      }
628 633
       this.filename = file.name;
629 634
       this.classShow = true;
630 635
       this.guaForm.image_name = file.name;
631 636
       const isLt2M = file.size / 1024 / 1024 <= 2048;
632 637
       console.log("filename", file);
633
-      // console.log('视频大小', file.size / 1024 / 1024)
634
-      // console.log('isLt2M是什么', isLt2M)
635
-
636
-      if (!isLt2M) {
637
-        this.$message.error("上传视频大小不能超过 2G!");
638
-        return false;
639
-      }
640 638
       var date = new Date();
641 639
       var ext = getFileExtension(file.name);
642 640
       var key =
@@ -667,23 +665,26 @@ export default {
667 665
           });
668 666
       });
669 667
     },
670
-    toLink() {
671
-      window.location.href = this.guaForm.images;
668
+    handleSuccess(res, file, fileList) {
669
+      this.guaForm.images = this.qiniuDomain + res.url;
670
+      console.log("图片路径", this.guaForm.images);
671
+      this.$refs.upload.clearFiles();
672
+      this.filename = file.name;
673
+      this.guaForm.imageName = file.name;
672 674
     },
673 675
     UpdateRepair(formName) {
674 676
       this.$refs[formName].validate(valid => {
675
-        this.guaForm.start_time = uParseTime(
676
-          this.guaForm.start_time,
677
-          "{y}-{m}-{d} {h}:{i}"
678
-        );
679
-        this.guaForm.arrive_time = uParseTime(
680
-          this.guaForm.arrive_time,
681
-          "{y}-{m}-{d} {h}:{i}"
682
-        );
683
-        this.guaForm.finish_time = uParseTime(
684
-          this.guaForm.finish_time,
685
-          "{y}-{m}-{d} {h}:{i}"
686
-        );
677
+        if (this.guaForm.start_time === "") {
678
+          this.guaForm.start_time = "0";
679
+        }
680
+
681
+        if (this.guaForm.arrive_time === "") {
682
+          this.guaForm.arrive_time = "0";
683
+        }
684
+
685
+        if (this.guaForm.finish_time === "") {
686
+          this.guaForm.finish_time = "0";
687
+        }
687 688
 
688 689
         if (this.guaForm.failure_stage === "") {
689 690
           this.guaForm.failure_stage = 0;
@@ -785,8 +786,31 @@ export default {
785 786
       });
786 787
     },
787 788
     hiddenShow() {
788
-      this.filename = "";
789
-      this.classShow = false;
789
+      this.$confirm(
790
+        "确认要删除所选图片吗? <br>删除后,信息将无法恢复",
791
+        "删除提示",
792
+        {
793
+          dangerouslyUseHTMLString: true,
794
+          confirmButtonText: "确定",
795
+          cancelButtonText: "取消",
796
+          type: "warning"
797
+        }
798
+      ).then(() => {
799
+        DeleteImages(this.guaForm.id).then(response => {
800
+          if (response.data.state === 1) {
801
+            this.filename = "";
802
+            this.classShow = false;
803
+            var msg = response.data.data.msg;
804
+            this.$message.success("删除成功");
805
+          }
806
+        });
807
+      });
808
+    },
809
+    getTimeTwo(time) {
810
+      if (time < 0) {
811
+        return "";
812
+      }
813
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
790 814
     }
791 815
   },
792 816
   created() {

+ 4 - 4
src/xt_pages/management/components/UserForm.vue Ver arquivo

@@ -1870,10 +1870,10 @@ export default {
1870 1870
               information[index].clean = ''
1871 1871
             }
1872 1872
           }
1873
-          console.log('消毒时间', information)
1873
+         // console.log('消毒时间', information)
1874 1874
           this.tableData = information
1875 1875
           var total = response.data.data.total
1876
-          console.log('total是什么', total)
1876
+         // console.log('total是什么', total)
1877 1877
           this.total = total
1878 1878
         }
1879 1879
       })
@@ -1916,7 +1916,7 @@ export default {
1916 1916
       getUserForm(id, this.limit, this.page).then(response => {
1917 1917
         if (response.data.state === 1) {
1918 1918
           var information = response.data.data.information
1919
-          console.log('数据是', information)
1919
+         // console.log('数据是', information)
1920 1920
           // eslint-disable-next-line no-unused-vars
1921 1921
           var addmacher = response.data.data.addmacher
1922 1922
           // console.log('addmacher', addmacher)
@@ -2238,7 +2238,7 @@ export default {
2238 2238
       changeBed(id).then(response => {
2239 2239
         if (response.data.state === 1) {
2240 2240
           var bed = response.data.data.bed
2241
-          console.log('aa', bed.length)
2241
+         
2242 2242
           if (bed.length !== 0) {
2243 2243
             this.form.bed = ''
2244 2244
             this.bedNumberTwo = bed

+ 129 - 82
src/xt_pages/management/home.vue Ver arquivo

@@ -454,55 +454,55 @@
454 454
                                   </el-form-item>
455 455
                                </el-col>
456 456
                                <el-col :span="7">
457
-                                  <el-form-item label="备注:">
458
-                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
459
-                                  </el-form-item>
457
+                                   <el-form-item label="消毒方式:">
458
+                                        <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
459
+                                          <el-option
460
+                                           v-for="item in this.DisinfectionMode"
461
+                                           :key="item.id"
462
+                                           :label="item.name"
463
+                                           :value="item.id"
464
+                                           ></el-option>
465
+                                         </el-select>
466
+                                     </el-form-item>
460 467
                                </el-col>
461 468
                                <el-col :span="7">
462
-                                  <el-form-item label="报废日期:">
463
-                                    <el-date-picker
464
-                                    v-model="form.rubbish_date"
465
-                                   prefix-icon="none"
466
-                                    type="date"
467
-                                    placeholder="请选择"
468
-                                    format="yyyy-MM-dd"
469
-                                     value-format="yyyy-MM-dd"
470
-                                     style="width:135px"
471
-                                     :disabled="disableFour">
472
-                                   </el-date-picker>
473
-                                 </el-form-item>
469
+                                    <el-form-item label="备注:">
470
+                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
471
+                                    </el-form-item>
474 472
                                 </el-col>
475 473
                              </el-row>
476 474
                              <el-row>
477 475
                                <el-col :span="7">
478
-                                   <el-form-item label="报废原因:">
479
-                                     <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
480
-                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
481
-                                     </el-select>
476
+                                   <el-form-item label="报废日期:">
477
+                                     <el-date-picker
478
+                                       v-model="form.rubbish_date"
479
+                                       prefix-icon="none"
480
+                                       type="date"
481
+                                       placeholder="请选择"
482
+                                       format="yyyy-MM-dd"
483
+                                       value-format="yyyy-MM-dd"
484
+                                       style="width:135px"
485
+                                       :disabled="disableFour">
486
+                                    </el-date-picker>
482 487
                                    </el-form-item>
483 488
                                 </el-col>
484 489
                                 <el-col :span="7">
485
-                                 <el-form-item label="使用年限(年):">
486
-                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
487
-                                 </el-form-item>
490
+                                    <el-form-item label="报废原因:">
491
+                                       <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
492
+                                         <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
493
+                                        </el-select>
494
+                                     </el-form-item>
488 495
                                 </el-col>
489
-                                 <el-col :span="7">
490
-                                   <el-form-item label="工作时长(h):">
491
-                                       <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
492
-                                   </el-form-item>
496
+                                 <el-col :span="7">      
497
+                                    <el-form-item label="使用年限(年):">
498
+                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
499
+                                    </el-form-item>
493 500
                                 </el-col>
494 501
                              </el-row>
495 502
                              <el-row>
496
-                                <el-col :span="8">
497
-                                    <el-form-item label="消毒方式:">
498
-                                        <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
499
-                                          <el-option
500
-                                           v-for="item in this.DisinfectionMode"
501
-                                           :key="item.id"
502
-                                           :label="item.name"
503
-                                           :value="item.id"
504
-                                           ></el-option>
505
-                                         </el-select>
503
+                                 <el-col :span="8">
504
+                                      <el-form-item label="工作时长(h):">
505
+                                         <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
506 506
                                      </el-form-item>
507 507
                                   </el-col>
508 508
                                  <el-col :span="8">
@@ -1752,7 +1752,7 @@
1752 1752
                                           value-format="yyyy-MM-dd HH:mm"
1753 1753
                                           placeholder="选择时间"
1754 1754
                                           v-model="guaForm.start_time"
1755
-                                          style="width:150px;">
1755
+                                          style="width:185px;">
1756 1756
                                        </el-date-picker>
1757 1757
                                   </el-form-item>
1758 1758
                                </el-col>
@@ -1767,7 +1767,7 @@
1767 1767
                                           placeholder="请选择"
1768 1768
                                           format="yyyy-MM-dd"
1769 1769
                                           value-format="yyyy-MM-dd"
1770
-                                          style="width:150px">
1770
+                                          style="width:185px">
1771 1771
                                         </el-date-picker> -->
1772 1772
                                          <el-date-picker
1773 1773
                                           type="datetime"
@@ -1775,7 +1775,7 @@
1775 1775
                                           value-format="yyyy-MM-dd HH:mm"
1776 1776
                                           placeholder="选择时间"
1777 1777
                                           v-model="guaForm.arrive_time"
1778
-                                          style="width:150px;">
1778
+                                          style="width:185px;">
1779 1779
                                        </el-date-picker>
1780 1780
                                   </el-form-item>
1781 1781
                                </el-col>
@@ -1787,7 +1787,7 @@
1787 1787
                                           value-format="yyyy-MM-dd HH:mm"
1788 1788
                                           placeholder="选择时间"
1789 1789
                                           v-model="guaForm.finish_time"
1790
-                                          style="width:150px;">
1790
+                                          style="width:185px;">
1791 1791
                                        </el-date-picker>
1792 1792
                                   </el-form-item>
1793 1793
                                </el-col>
@@ -1864,11 +1864,12 @@
1864 1864
                                       :before-upload="beforeUploadFile"
1865 1865
                                       :limit="1"
1866 1866
                                       ref='upload'
1867
+                                      accept=".jpg,.png,.gif"
1867 1868
                                       >
1868 1869
                                         <el-button size="small" type="primary">上传图片</el-button>
1869 1870
                                       </el-upload>
1870
-                                     <a class="el-upload-list__item-name">
1871
-                                        <i style="color:#0000EE"><a @click="toLink()">{{filename}}</a><span v-show="classShow" @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
1871
+                                     <a class="el-upload-list__item-name" v-show="classShow">
1872
+                                        <i style="color:#0000EE"><a :href="guaForm.images" target="_blank">{{filename}}</a><span @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
1872 1873
                                      </a>
1873 1874
                                   </el-form-item>
1874 1875
                                </el-col>
@@ -2664,12 +2665,12 @@ export default {
2664 2665
         getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
2665 2666
           if (response.data.state === 1) {
2666 2667
             var addmahcer = response.data.data.addmahcer
2667
-      
2668
+            console.log('查找的数据', addmahcer)
2668 2669
             this.tableDatatwo = addmahcer
2669 2670
             this.tabIndex = this.$route.query.index
2670 2671
             var id = this.$route.query.id
2671
-            for(let i = 0;i < this.tableDatatwo.length;i++) {
2672
-              if(this.tableDatatwo[i].id == id) {  
2672
+            for (let i = 0; i < this.tableDatatwo.length; i++) {
2673
+              if (this.tableDatatwo[i].id == id) {
2673 2674
                 this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2674 2675
                 break
2675 2676
               }
@@ -2683,7 +2684,7 @@ export default {
2683 2684
       },
2684 2685
       handleCurrentChange(val) {
2685 2686
         this.unitType = val.unit_type
2686
-        console.log('val是什么', val)
2687
+        // console.log('val是什么', val)
2687 2688
         this.currentRow = val
2688 2689
         this.$forceUpdate()
2689 2690
         this.getMachineDetailById(val.id)
@@ -2869,7 +2870,7 @@ export default {
2869 2870
             this.form.machine_status = addmacher.machine_status
2870 2871
             this.form.user_total = addmacher.user_total
2871 2872
             this.form.remarks = addmacher.remarks
2872
-
2873
+            // this.form.device_mode = addmacher.device_mode
2873 2874
             if (addmacher.rubbish_date !== 0) {
2874 2875
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
2875 2876
             }
@@ -2976,19 +2977,24 @@ export default {
2976 2977
         var bed_numberss = parseInt(bed_numbers)
2977 2978
         this.form.bed_number = bed_numberss
2978 2979
         this.$refs[formName].validate(valid => {
2979
-          UpdateMachineInfo(this.form).then(response => {debugger
2980
+          UpdateMachineInfo(this.form).then(response => {
2980 2981
             // console.log('form', this.form)
2981 2982
             if (response.data.state === 1) {
2982 2983
               var addmacher = response.data.data.addmacher
2983
-              console.log('addmacher----', addmacher)
2984
-
2984
+              // console.log('addmacher----', addmacher)
2985 2985
               this.$message.success('修改成功')
2986 2986
               // this.$router.push({ path: '/device/home?index=' + this.tabIndex })
2987
-              for(let i = 0;i < this.tableDatatwo.length;i++) {
2988
-                if(this.tableDatatwo[i].id == addmacher.id) {
2987
+              for (let i = 0; i < this.tableDatatwo.length; i++) {
2988
+                if (this.tableDatatwo[i].id == addmacher.id) {
2989
+                  for (let j = 0; j < this.deviceMode.length; j++) {
2990
+                    if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
2991
+                      addmacher.device_mode = this.deviceMode[j].device_mode
2992
+                      //   this.$forceUpdate()
2993
+                    }
2994
+                  }
2995
+  
2989 2996
                   this.tableDatatwo[i] = addmacher
2990 2997
                   // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2991
-                  // this.$forceUpdate
2992 2998
                 }
2993 2999
               }
2994 3000
               // this.getAllMachine()
@@ -3032,19 +3038,24 @@ export default {
3032 3038
               if (response.data.state === 1) {
3033 3039
                 // eslint-disable-next-line no-unused-vars
3034 3040
                 var addmacher = response.data.data.addmacher
3035
-
3036 3041
                 this.$message.success('修改成功')
3037
-                for(let i = 0;i < this.tableDatatwo.length;i++) {
3038
-                  if(this.tableDatatwo[i].id == addmacher.id) {
3042
+                for (let i = 0; i < this.tableDatatwo.length; i++) {
3043
+                  if (this.tableDatatwo[i].id == addmacher.id) {
3044
+                    for (let j = 0; j < this.deviceMode.length; j++) {
3045
+                      if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3046
+                        addmacher.device_mode = this.deviceMode[j].device_mode
3047
+                      //   this.$forceUpdate()
3048
+                      }
3049
+                    }
3050
+  
3039 3051
                     this.tableDatatwo[i] = addmacher
3040
-                
3052
+                  // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3041 3053
                   }
3042 3054
                 }
3043 3055
                 // this.getAllMachine()
3044
-                this.$forceUpdate
3045 3056
                 this.getAllSubregion()
3046
-                // this.$refs.singleTable.setCurrentRow(addmacher)
3047
-                
3057
+                this.$refs.singleTable.setCurrentRow(addmacher)
3058
+                this.$forceUpdate()
3048 3059
               }
3049 3060
             })
3050 3061
           }
@@ -3072,16 +3083,23 @@ export default {
3072 3083
             if (response.data.state === 1) {
3073 3084
               var addmacher = response.data.data.addmacher
3074 3085
               this.$message.success('修改成功')
3075
-              for(let i = 0;i < this.tableDatatwo.length;i++) {
3076
-                  if(this.tableDatatwo[i].id == addmacher.id) {
3077
-                    this.tableDatatwo[i] = addmacher
3078
-
3086
+              for (let i = 0; i < this.tableDatatwo.length; i++) {
3087
+                if (this.tableDatatwo[i].id == addmacher.id) {
3088
+                  for (let j = 0; j < this.deviceMode.length; j++) {
3089
+                    if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3090
+                      addmacher.device_mode = this.deviceMode[j].device_mode
3091
+                      //   this.$forceUpdate()
3092
+                    }
3079 3093
                   }
3094
+  
3095
+                  this.tableDatatwo[i] = addmacher
3096
+                  // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3080 3097
                 }
3081
-                // this.getAllMachine()
3082
-                this.$forceUpdate
3098
+              }
3083 3099
               // this.getAllMachine()
3084 3100
               this.getAllSubregion()
3101
+              this.$refs.singleTable.setCurrentRow(addmacher)
3102
+              this.$forceUpdate()
3085 3103
             }
3086 3104
           })
3087 3105
         })
@@ -3275,7 +3293,7 @@ export default {
3275 3293
         getAllPlanDetail(unit_type).then(response => {
3276 3294
           if (response.data.state === 1) {
3277 3295
             var plandetail = response.data.data.plandetail
3278
-            console.log('plandetail', plandetail)
3296
+            // console.log('plandetail', plandetail)
3279 3297
             for (let index = 0; index < plandetail.length; index++) {
3280 3298
               if (plandetail[index].time === 1) {
3281 3299
                 plandetail[index].time = '周一'
@@ -3427,11 +3445,16 @@ export default {
3427 3445
         var devicetype = this.machineform.device_type
3428 3446
         var devicetypes = parseInt(devicetype)
3429 3447
         this.machineform.device_type = devicetypes
3430
-
3431
-        var disinfectimes = this.machineform.disinfec_time
3432
-        var disinfectime = parseInt(disinfectimes)
3433
-        this.machineform.disinfec_time = disinfectime
3434
-
3448
+  
3449
+        if (this.machineform.disinfec_time === '') {
3450
+          this.machineform.disinfec_time = ''
3451
+        }
3452
+        if (this.machineform.disinfec_time !== '') {
3453
+          var disinfectimes = this.machineform.disinfec_time
3454
+          var disinfectime = parseInt(disinfectimes)
3455
+          this.machineform.disinfec_time = disinfectime
3456
+        }
3457
+  
3435 3458
         var times = this.machineform.time
3436 3459
         var time = parseInt(times)
3437 3460
         this.machineform.time = time
@@ -3839,7 +3862,7 @@ export default {
3839 3862
         getUserRegister(id).then(response => {
3840 3863
           if (response.data.state === 1) {
3841 3864
             var information = response.data.data.information
3842
-            console.log('产讯使用登记', information)
3865
+            // console.log('产讯使用登记', information)
3843 3866
             // eslint-disable-next-line no-unused-vars
3844 3867
             var role = response.data.data.role
3845 3868
             // console.log('role', role)
@@ -4127,6 +4150,17 @@ export default {
4127 4150
         }
4128 4151
       },
4129 4152
       beforeUploadFile(file) {
4153
+        var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1)
4154
+        const extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'gif' || testmsg === 'GIF'
4155
+    	if (!extension) {
4156
+      					// eslint-disable-next-line no-mixed-spaces-and-tabs
4157
+      					this.$message({
4158
+      						// eslint-disable-next-line no-mixed-spaces-and-tabs
4159
+      						message: '上传文件只能是jpg或者png或者gif格式!',
4160
+      						type: 'error'
4161
+          })
4162
+          return false// 必须加上return false; 才能阻止
4163
+        }
4130 4164
         this.filename = file.name
4131 4165
         this.classShow = true
4132 4166
         this.guaForm.imageName = file.name
@@ -4210,6 +4244,8 @@ export default {
4210 4244
                 this.guaForm.exclude = 0
4211 4245
                 this.guaForm.images = ''
4212 4246
                 this.guaForm.treatment_process = ''
4247
+                this.classShow = false
4248
+                this.guaForm.imageName = ''
4213 4249
               }
4214 4250
             })
4215 4251
           }
@@ -4297,7 +4333,7 @@ export default {
4297 4333
           if (response.data.state === 1) {
4298 4334
             var information = response.data.data.information
4299 4335
             var time = this.getTimestamp(this.userform.date) - information.stime
4300
-            console.log('时间', time)
4336
+            // console.log('时间', time)
4301 4337
             // if (time < 2678400) {
4302 4338
             //   this.warnShow = false
4303 4339
             // }
@@ -4318,13 +4354,10 @@ export default {
4318 4354
       },
4319 4355
       getTimeBeteen(id) {
4320 4356
         var todayTime = moment(new Date()).format('YYYY-MM-DD')
4321
-        console.log('todayTime', todayTime)
4357
+        // console.log('todayTime', todayTime)
4322 4358
         getTimeBeteen(id, todayTime).then(response => {
4323 4359
           if (response.data.state === 1) {
4324
-            // debugger
4325 4360
             var timedata = response.data.data.timeData
4326
-            console.log('timedata', timedata)
4327
-            console.log('timedata', timedata.length)
4328 4361
             if (timedata.length === 0) {
4329 4362
               this.warnShow = true
4330 4363
             }
@@ -4332,7 +4365,7 @@ export default {
4332 4365
               this.warnShow = false
4333 4366
             }
4334 4367
             var todayTimeTwo = response.data.data.timeDataTwo
4335
-            console.log('todayTimeTwo', todayTimeTwo)
4368
+            // console.log('todayTimeTwo', todayTimeTwo)
4336 4369
             if (todayTimeTwo.length === 0) {
4337 4370
               this.warnShowTwo = true
4338 4371
             }
@@ -4365,6 +4398,7 @@ export default {
4365 4398
       getAllMode() {
4366 4399
         getAllMode().then(response => {
4367 4400
           var mode = response.data.data.mode
4401
+  
4368 4402
           this.deviceMode = mode
4369 4403
         })
4370 4404
       },
@@ -4392,13 +4426,26 @@ export default {
4392 4426
             this.$forceUpdate()
4393 4427
             this.userform.bed_number = zone.id
4394 4428
             this.userform.zone = zone.zone_id
4395
-            console.log('zone', zone)
4429
+            // console.log('zone', zone)
4396 4430
           }
4397 4431
         })
4398 4432
       },
4399 4433
       hiddenShow() {
4400
-        this.filename = ''
4401
-        this.classShow = false
4434
+        this.$confirm(
4435
+          '确认要删除所选图片吗? <br>删除后,信息将无法恢复',
4436
+          '删除提示',
4437
+          {
4438
+            dangerouslyUseHTMLString: true,
4439
+            confirmButtonText: '确定',
4440
+            cancelButtonText: '取消',
4441
+            type: 'warning'
4442
+          }
4443
+        ).then(() => {
4444
+          this.filename = ''
4445
+          this.guaForm.imageName = ''
4446
+          this.guaForm.images = ''
4447
+          this.classShow = false
4448
+        })
4402 4449
       }
4403 4450
     },
4404 4451
     created() {

+ 288 - 103
src/xt_pages/user/components/PatientForm.vue Ver arquivo

@@ -15,12 +15,17 @@
15 15
             <el-col :span="7" :key="index">
16 16
               <el-form-item
17 17
                 :label="item.item_name"
18
-                v-if="item.range_type==1"
18
+                v-if="item.range_type == 1"
19 19
                 :key="item.item_id"
20 20
                 :prop="'formItem.' + index + '.value'"
21 21
               >
22
-                <el-input placeholder="请填入" v-model="item.value" style="width:95%" type="number">
23
-                  <template slot="append">{{item.unit}}</template>
22
+                <el-input
23
+                  placeholder="请填入"
24
+                  v-model="item.value"
25
+                  style="width:95%"
26
+                  type="number"
27
+                >
28
+                  <template slot="append">{{ item.unit }}</template>
24 29
                 </el-input>
25 30
               </el-form-item>
26 31
               <el-form-item
@@ -29,7 +34,11 @@
29 34
                 :key="item.item_id"
30 35
                 :prop="'formItem.' + index + '.value'"
31 36
               >
32
-                <el-select v-model="item.value" placeholder="请选择" style="width:95%">
37
+                <el-select
38
+                  v-model="item.value"
39
+                  placeholder="请选择"
40
+                  style="width:95%"
41
+                >
33 42
                   <el-option
34 43
                     v-for="(optionItem, oidex) in item.select_options"
35 44
                     :key="oidex"
@@ -39,7 +48,7 @@
39 48
                 </el-select>
40 49
               </el-form-item>
41 50
             </el-col>
42
-            <el-col :span="1" :key="'form-col'+index">&nbsp;</el-col>
51
+            <el-col :span="1" :key="'form-col' + index">&nbsp;</el-col>
43 52
           </template>
44 53
         </el-row>
45 54
       </el-form>
@@ -53,17 +62,26 @@
53 62
       <bread-crumb :crumbs="crumbs"></bread-crumb>
54 63
       <div class style="float:right;color: white">
55 64
         <el-button
56
-          :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
65
+          :disabled="
66
+            $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
67
+              ? true
68
+              : false
69
+          "
57 70
           type="primary"
58
-          v-if="this.isEdit==false"
71
+          v-if="this.isEdit == false"
59 72
           @click="resetForm('form')"
60 73
           icon="el-icon-circle-plus-outline"
61 74
           size="small"
62
-        >新增</el-button>
75
+          >新增</el-button
76
+        >
63 77
       </div>
64 78
     </div>
65 79
 
66
-    <div v-if="isEdit" class style="float:right;margin-right: 35px;margin-top: 10px">
80
+    <div
81
+      v-if="isEdit"
82
+      class
83
+      style="float:right;margin-right: 35px;margin-top: 10px"
84
+    >
67 85
       <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
68 86
       <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')"  icon="el-icon-circle-plus-outline" size="small">新增</el-button>
69 87
       <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="success" icon="el-icon-setting" >保存</el-button>
@@ -83,12 +101,16 @@
83 101
         <el-row>
84 102
           <el-col :span="20" class="form-table">
85 103
             <el-row :span="20">
86
-              <el-col :span="8" :style="isEdit?'width:360px':''">
104
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
87 105
                 <el-form-item label="姓名 : " class="is-required" prop="name">
88 106
                   <el-input v-model="form.name"></el-input>
89 107
                 </el-form-item>
90 108
               </el-col>
91
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
109
+              <el-col
110
+                :span="8"
111
+                :style="isEdit ? 'width:360px' : ''"
112
+                style="height:59px;"
113
+              >
92 114
                 <el-form-item label="性别 : " class="is-required" prop="gender">
93 115
                   <el-radio-group v-model="form.gender" @change="changeGender">
94 116
                     <el-radio
@@ -96,20 +118,35 @@
96 118
                       :key="item.value"
97 119
                       :label="item.value"
98 120
                       :value="item.value"
99
-                    >{{item.label}}</el-radio>
121
+                      >{{ item.label }}</el-radio
122
+                    >
100 123
                   </el-radio-group>
101 124
                 </el-form-item>
102 125
               </el-col>
103 126
 
104
-              <el-col :span="8" :style="isEdit?'width:360px':''">
105
-                <el-form-item label="身份证号 : " class="is-required" prop="idCardNo">
106
-                  <el-input v-model="form.idCardNo" @blur="checkIdCardNo"></el-input>
127
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
128
+                <el-form-item
129
+                  label="身份证号 : "
130
+                  class="is-required"
131
+                  prop="idCardNo"
132
+                >
133
+                  <el-input
134
+                    v-model="form.idCardNo"
135
+                    @blur="checkIdCardNo"
136
+                  ></el-input>
107 137
                 </el-form-item>
108 138
               </el-col>
109 139
 
110
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
140
+              <el-col
141
+                :span="8"
142
+                :style="isEdit ? 'width:360px' : ''"
143
+                style="height:59px;"
144
+              >
111 145
                 <el-form-item label="年龄 : " class="is-required" prop="age">
112
-                  <el-input v-model="form.age" placeholder="请填写年龄"></el-input>
146
+                  <el-input
147
+                    v-model="form.age"
148
+                    placeholder="请填写年龄"
149
+                  ></el-input>
113 150
                 </el-form-item>
114 151
               </el-col>
115 152
               <template v-if="isEdit">
@@ -121,7 +158,7 @@
121 158
                   </el-form-item>
122 159
                 </el-col>-->
123 160
 
124
-                <el-col :span="8" :style="isEdit?'width:360px':''">
161
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
125 162
                   <el-form-item label="透析号 : " class="is-required">
126 163
                     <el-input
127 164
                       v-model="form.dialysisNo"
@@ -142,7 +179,11 @@
142 179
                 </el-col>-->
143 180
 
144 181
                 <el-col :span="8">
145
-                  <el-form-item label="透析号 : " class="is-required" prop="dialysisNo">
182
+                  <el-form-item
183
+                    label="透析号 : "
184
+                    class="is-required"
185
+                    prop="dialysisNo"
186
+                  >
146 187
                     <el-input
147 188
                       v-model="form.dialysisNo"
148 189
                       placeholder="填写或自动生成"
@@ -150,16 +191,26 @@
150 191
                     ></el-input>
151 192
                     <el-button
152 193
                       style="width:35%;padding:10px 0;"
153
-                      :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
194
+                      :disabled="
195
+                        $store.getters.xt_user.subscibe.state == 3 ||
196
+                        !subscibeFlag
197
+                          ? true
198
+                          : false
199
+                      "
154 200
                       type="primary"
155 201
                       @click="generatedialysisno"
156
-                    >自动生成</el-button>
202
+                      >自动生成</el-button
203
+                    >
157 204
                   </el-form-item>
158 205
                 </el-col>
159 206
               </template>
160 207
 
161
-              <el-col :span="8" :style="isEdit?'width:360px':''">
162
-                <el-form-item label="出生日期 : " class="is-required" prop="birth">
208
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
209
+                <el-form-item
210
+                  label="出生日期 : "
211
+                  class="is-required"
212
+                  prop="birth"
213
+                >
163 214
                   <el-date-picker
164 215
                     v-model="form.birth"
165 216
                     type="date"
@@ -172,8 +223,12 @@
172 223
                 </el-form-item>
173 224
               </el-col>
174 225
 
175
-              <el-col :span="6" :style="isEdit?'width:380px':''">
176
-                <el-form-item label="首次肾脏治疗时间:" prop="firstDialysisDate" label-width="150px">
226
+              <el-col :span="6" :style="isEdit ? 'width:380px' : ''">
227
+                <el-form-item
228
+                  label="首次肾脏治疗时间:"
229
+                  prop="firstDialysisDate"
230
+                  label-width="150px"
231
+                >
177 232
                   <el-date-picker
178 233
                     v-model="form.firstDialysisDate"
179 234
                     type="date"
@@ -182,43 +237,63 @@
182 237
                   ></el-date-picker>
183 238
                 </el-form-item>
184 239
               </el-col>
185
-              <el-col :span="8" :style="isEdit?'width:360px':''">
186
-                <el-form-item label="本人电话 : " class="is-required" prop="phone">
240
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
241
+                <el-form-item
242
+                  label="本人电话 : "
243
+                  class="is-required"
244
+                  prop="phone"
245
+                >
187 246
                   <el-input v-model="form.phone" maxlength="20"></el-input>
188 247
                 </el-form-item>
189 248
               </el-col>
190
-              <el-col :span="8" :style="isEdit?'width:360px':''">
249
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
191 250
                 <el-form-item label="家属姓名 : ">
192
-                  <el-input v-model="form.contact_name" maxlength="20"></el-input>
251
+                  <el-input
252
+                    v-model="form.contact_name"
253
+                    maxlength="20"
254
+                  ></el-input>
193 255
                 </el-form-item>
194 256
               </el-col>
195
-              <el-col :span="8" :style="isEdit?'width:360px':''">
257
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
196 258
                 <el-form-item label="家属电话 : " prop="homeTelephone">
197
-                  <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
259
+                  <el-input
260
+                    v-model="form.homeTelephone"
261
+                    maxlength="20"
262
+                  ></el-input>
198 263
                 </el-form-item>
199 264
               </el-col>
200 265
 
201
-              <el-col :span="8" :style="isEdit?'width:360px':''">
202
-                <el-form-item label="患者来源 : " class="is-required" prop="source">
266
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
267
+                <el-form-item
268
+                  label="患者来源 : "
269
+                  class="is-required"
270
+                  prop="source"
271
+                >
203 272
                   <el-radio-group v-model="form.source">
204 273
                     <el-radio
205 274
                       v-for="item in sourceOptions"
206 275
                       :key="item.value"
207 276
                       :label="item.value"
208 277
                       :value="item.value"
209
-                    >{{item.label}}</el-radio>
278
+                      >{{ item.label }}</el-radio
279
+                    >
210 280
                   </el-radio-group>
211 281
                 </el-form-item>
212 282
               </el-col>
213
-              <el-col :span="8" :style="isEdit?'width:360px':''">
214
-                <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto">
283
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
284
+                <el-form-item
285
+                  label="治疗状态(转归) : "
286
+                  class="is-required"
287
+                  prop="lapseto"
288
+                >
215 289
                   <el-radio-group v-model="form.lapseto">
216 290
                     <el-radio
217 291
                       v-for="item in lapsetoOptions"
218 292
                       :key="item.value"
219 293
                       :label="item.value"
220 294
                       :value="item.value"
221
-                    >{{item.label}}</el-radio>
295
+                      >{{ item.label }}</el-radio
296
+                    >
222 297
                   </el-radio-group>
223 298
                 </el-form-item>
224 299
               </el-col>
@@ -229,15 +304,19 @@
229 304
                     <el-radio :label="1">无</el-radio>
230 305
                     <el-radio :label="2">有</el-radio>
231 306
                   </el-radio-group>
232
-                  <el-checkbox-group v-model="form.contagions" v-if="form.is_infectious == '2'">
307
+                  <el-checkbox-group
308
+                    v-model="form.contagions"
309
+                    v-if="form.is_infectious == '2'"
310
+                  >
233 311
                     <el-checkbox
234 312
                       v-for="item in contagionList"
235
-                      v-if="item.type==2"
313
+                      v-if="item.type == 2"
236 314
                       :label="item.id"
237 315
                       :key="item.id"
238 316
                       name="contagions"
239 317
                       :value="item.id"
240
-                    >{{item.name}}</el-checkbox>
318
+                      >{{ item.name }}</el-checkbox
319
+                    >
241 320
                   </el-checkbox-group>
242 321
                 </el-form-item>
243 322
               </el-col>
@@ -260,14 +339,22 @@
260 339
                     value-format="yyyy-MM-dd"
261 340
                     v-if="!isEdit"
262 341
                   ></el-date-picker>
263
-                  <el-button type="primary" @click="recordCheck()" v-if="!isEdit">录入检验检查</el-button>
342
+                  <el-button
343
+                    type="primary"
344
+                    @click="recordCheck()"
345
+                    v-if="!isEdit"
346
+                    >录入检验检查</el-button
347
+                  >
264 348
                   <!--<el-button type="primary"  v-if="isEdit">查看检验检查</el-button>-->
265 349
                 </el-form-item>
266 350
               </el-col>
267 351
 
268 352
               <el-col :span="24">
269 353
                 <el-form-item label="传染病周期提醒: ">
270
-                  <el-radio-group v-model="form.remind_cycle" @change="changeCycle()">
354
+                  <el-radio-group
355
+                    v-model="form.remind_cycle"
356
+                    @change="changeCycle()"
357
+                  >
271 358
                     <el-radio :label="1">一月一次</el-radio>
272 359
                     <el-radio :label="2">两月一次</el-radio>
273 360
                     <el-radio :label="3">三月一次</el-radio>
@@ -288,38 +375,48 @@
288 375
                 </el-form-item>
289 376
               </el-col>
290 377
 
291
-              <el-col :span="8" :style="isEdit?'width:360px':''">
378
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
292 379
                 <el-form-item label="民族 : " prop="nation">
293 380
                   <el-input v-model="form.nation" maxlength="30"></el-input>
294 381
                 </el-form-item>
295 382
               </el-col>
296 383
 
297
-              <el-col :span="8" :style="isEdit?'width:360px':''">
384
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
298 385
                 <el-form-item label="籍贯 : " prop="native_place">
299
-                  <el-input v-model="form.native_place" maxlength="30"></el-input>
386
+                  <el-input
387
+                    v-model="form.native_place"
388
+                    maxlength="30"
389
+                  ></el-input>
300 390
                 </el-form-item>
301 391
               </el-col>
302 392
 
303
-              <el-col :span="8" :style="isEdit?'width:360px':''">
393
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
304 394
                 <el-form-item label="家庭住址 : " prop="homeAddress">
305 395
                   <el-input v-model="form.homeAddress"></el-input>
306 396
                 </el-form-item>
307 397
               </el-col>
308 398
 
309 399
               <div v-show="!generic_info_fold">
310
-                <el-col :span="8" :style="isEdit?'width:360px':''">
400
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
311 401
                   <el-form-item label="别名 : " prop="alias">
312 402
                     <el-input v-model="form.alias"></el-input>
313 403
                   </el-form-item>
314 404
                 </el-col>
315
-                <el-col :span="8" :style="isEdit?'width:360px':''">
405
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
316 406
                   <el-form-item label="身高(cm) : " prop="height">
317
-                    <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
407
+                    <el-input
408
+                      maxlength="5"
409
+                      v-model="form.height"
410
+                      @change="checkHeight"
411
+                    ></el-input>
318 412
                   </el-form-item>
319 413
                 </el-col>
320
-                <el-col :span="8" :style="isEdit?'width:360px':''">
414
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
321 415
                   <el-form-item label="婚姻状况 : " prop="maritalStatus">
322
-                    <el-select v-model="form.maritalStatus" placeholder="请选择婚姻状况">
416
+                    <el-select
417
+                      v-model="form.maritalStatus"
418
+                      placeholder="请选择婚姻状况"
419
+                    >
323 420
                       <el-option
324 421
                         v-for="item in maritalOptions"
325 422
                         :key="item.id"
@@ -329,19 +426,23 @@
329 426
                     </el-select>
330 427
                   </el-form-item>
331 428
                 </el-col>
332
-                <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
429
+                <el-col
430
+                  :span="8"
431
+                  style="clearfix"
432
+                  :style="isEdit ? 'width:360px' : ''"
433
+                >
333 434
                   <el-form-item label="子女情况(个) : " prop="children">
334 435
                     <el-input maxlength="5" v-model="form.children"></el-input>
335 436
                   </el-form-item>
336 437
                   <!-- <el-form-item label=" " style="float:left;" label-width="30px">
337 438
                   </el-form-item>-->
338 439
                 </el-col>
339
-                <el-col :span="8" :style="isEdit?'width:360px':''">
440
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
340 441
                   <el-form-item label="住院(门诊)号 : ">
341 442
                     <el-input v-model="form.admissionNumber"></el-input>
342 443
                   </el-form-item>
343 444
                 </el-col>
344
-                <el-col :span="8" :style="isEdit?'width:360px':''">
445
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
345 446
                   <el-form-item label="医保类型 : " prop="reimbursementWayID">
346 447
                     <el-select v-model="form.reimbursementWayID">
347 448
                       <el-option
@@ -353,12 +454,12 @@
353 454
                     </el-select>
354 455
                   </el-form-item>
355 456
                 </el-col>
356
-                <el-col :span="8" :style="isEdit?'width:360px':''">
457
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
357 458
                   <el-form-item label="医保号 : " prop="healthCareNo">
358 459
                     <el-input v-model="form.healthCareNo"></el-input>
359 460
                   </el-form-item>
360 461
                 </el-col>
361
-                <el-col :span="8" :style="isEdit?'width:360px':''">
462
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
362 463
                   <el-form-item label="教育程度 : " prop="educationOptions">
363 464
                     <el-select v-model="form.education">
364 465
                       <el-option
@@ -371,13 +472,16 @@
371 472
                   </el-form-item>
372 473
                 </el-col>
373 474
 
374
-                <el-col :span="8" :style="isEdit?'width:360px':''">
475
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
375 476
                   <el-form-item label="固定电话 : ">
376
-                    <el-input v-model="form.tell_phone" maxlength="20"></el-input>
477
+                    <el-input
478
+                      v-model="form.tell_phone"
479
+                      maxlength="20"
480
+                    ></el-input>
377 481
                   </el-form-item>
378 482
                 </el-col>
379 483
 
380
-                <el-col :span="8" :style="isEdit?'width:360px':''">
484
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
381 485
                   <el-form-item label="费别 : ">
382 486
                     <el-select v-model="form.expense_kind">
383 487
                       <el-option
@@ -390,23 +494,33 @@
390 494
                   </el-form-item>
391 495
                 </el-col>
392 496
 
393
-                <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
497
+                <el-col
498
+                  :span="8"
499
+                  :style="isEdit ? 'width:360px' : ''"
500
+                  style="height:59px;"
501
+                >
394 502
                   <el-form-item label="透析龄(月): ">
395 503
                     <el-input v-model="form.dialysis_age"></el-input>
396 504
                   </el-form-item>
397 505
                 </el-col>
398 506
 
399
-                <el-col :span="8" :style="isEdit?'width:360px':''">
507
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
400 508
                   <el-form-item label="亲友电话 : " prop="relative_phone">
401
-                    <el-input v-model="form.relative_phone" maxlength="20"></el-input>
509
+                    <el-input
510
+                      v-model="form.relative_phone"
511
+                      maxlength="20"
512
+                    ></el-input>
402 513
                   </el-form-item>
403 514
                 </el-col>
404
-                <el-col :span="8" :style="isEdit?'width:360px':''">
515
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
405 516
                   <el-form-item label="亲友关系 : " prop="relative_relations">
406
-                    <el-input v-model="form.relative_relations" maxlength="20"></el-input>
517
+                    <el-input
518
+                      v-model="form.relative_relations"
519
+                      maxlength="20"
520
+                    ></el-input>
407 521
                   </el-form-item>
408 522
                 </el-col>
409
-                <el-col :span="8" :style="isEdit?'width:360px':''">
523
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
410 524
                   <el-form-item label="职业 : " prop="profession">
411 525
                     <el-select v-model="form.profession">
412 526
                       <el-option
@@ -418,12 +532,12 @@
418 532
                     </el-select>
419 533
                   </el-form-item>
420 534
                 </el-col>
421
-                <el-col :span="8" :style="isEdit?'width:360px':''">
535
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
422 536
                   <el-form-item label="工作单位 : " prop="work">
423 537
                     <el-input v-model="form.work"></el-input>
424 538
                   </el-form-item>
425 539
                 </el-col>
426
-                <el-col :span="8" :style="isEdit?'width:360px':''">
540
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
427 541
                   <el-form-item label="单位地址 : " prop="unit_address">
428 542
                     <el-input v-model="form.unit_address"></el-input>
429 543
                   </el-form-item>
@@ -431,9 +545,11 @@
431 545
               </div>
432 546
               <el-col :span="24">
433 547
                 <el-form-item>
434
-                  <el-button type="text" @click="generic_info_fold = !generic_info_fold">
435
-                    {{ generic_info_fold ? '更多资料' :
436
-                    '收起' }}
548
+                  <el-button
549
+                    type="text"
550
+                    @click="generic_info_fold = !generic_info_fold"
551
+                  >
552
+                    {{ generic_info_fold ? "更多资料" : "收起" }}
437 553
                     <i class="el-icon--right" :class="generic_fold_icon"></i>
438 554
                   </el-button>
439 555
                 </el-form-item>
@@ -443,7 +559,11 @@
443 559
           <el-col :span="4" align="center">
444 560
             <el-upload
445 561
               style="width:100%;"
446
-              :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
562
+              :disabled="
563
+                $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
564
+                  ? true
565
+                  : false
566
+              "
447 567
               :data="uploadData"
448 568
               class="uploadHead"
449 569
               :multiple="false"
@@ -454,14 +574,24 @@
454 574
               list-type="picture-card"
455 575
               :before-upload="beforeAvatarUpload"
456 576
             >
457
-              <img width="100%" height="100%" v-if="form.avatar" :src="form.avatar" class="avatar" />
577
+              <img
578
+                width="100%"
579
+                height="100%"
580
+                v-if="form.avatar"
581
+                :src="form.avatar"
582
+                class="avatar"
583
+              />
458 584
               <i class="el-icon-plus" v-else></i>
459 585
             </el-upload>
460 586
             <el-dialog :visible.sync="dialogVisible">
461 587
               <img width="100%" :src="dialogImageUrl" alt />
462 588
             </el-dialog>
463 589
             <el-upload
464
-              :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
590
+              :disabled="
591
+                $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
592
+                  ? true
593
+                  : false
594
+              "
465 595
               :data="uploadData"
466 596
               :multiple="false"
467 597
               action="https://upload.qiniup.com"
@@ -471,13 +601,22 @@
471 601
               :before-upload="beforeAvatarUpload"
472 602
             >
473 603
               <el-button
474
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
604
+                :disabled="
605
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
606
+                    ? true
607
+                    : false
608
+                "
475 609
                 class="uploadHeadBtn"
476 610
                 type="primary"
477
-              >上传头像</el-button>
611
+                >上传头像</el-button
612
+              >
478 613
             </el-upload>
479 614
             <el-form-item>
480
-              <el-input v-model="form.avatar" type="hidden" placeholder></el-input>
615
+              <el-input
616
+                v-model="form.avatar"
617
+                type="hidden"
618
+                placeholder
619
+              ></el-input>
481 620
             </el-form-item>
482 621
           </el-col>
483 622
         </el-row>
@@ -548,7 +687,13 @@
548 687
           <el-col></el-col>
549 688
           <el-col :span="24">
550 689
             <el-form-item label prop="remark">
551
-              <el-input type="textarea" :rows="3" v-model="form.remark" resize="none" placeholder></el-input>
690
+              <el-input
691
+                type="textarea"
692
+                :rows="3"
693
+                v-model="form.remark"
694
+                resize="none"
695
+                placeholder
696
+              ></el-input>
552 697
             </el-form-item>
553 698
           </el-col>
554 699
           <!--<el-col :span="24">-->
@@ -568,26 +713,31 @@
568 713
                   :label="item.id"
569 714
                   :key="item.id"
570 715
                   :value="item.id"
571
-                >{{item.name}}</el-checkbox>
716
+                  >{{ item.name }}</el-checkbox
717
+                >
572 718
               </el-checkbox-group>
573 719
             </el-form-item>
574 720
           </el-col>
575 721
 
576 722
           <div v-show="!treat_info_fold">
577
-            <el-col :span="6" :style="isEdit?'width:360px':''">
578
-              <el-form-item label="本院首次透析 : " prop="is_hospital_first_dialysis">
723
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
724
+              <el-form-item
725
+                label="本院首次透析 : "
726
+                prop="is_hospital_first_dialysis"
727
+              >
579 728
                 <el-radio-group v-model="form.is_hospital_first_dialysis">
580 729
                   <el-radio
581 730
                     v-for="item in isHospitalFirstDialysisOptions"
582 731
                     :key="item.value"
583 732
                     :label="item.value"
584 733
                     :value="item.value"
585
-                  >{{item.label}}</el-radio>
734
+                    >{{ item.label }}</el-radio
735
+                  >
586 736
                 </el-radio-group>
587 737
               </el-form-item>
588 738
             </el-col>
589 739
 
590
-            <el-col :span="6" :style="isEdit?'width:360px':''">
740
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
591 741
               <el-form-item label="首次诊治时间 : ">
592 742
                 <el-date-picker
593 743
                   v-model="form.first_treatment_date"
@@ -597,35 +747,53 @@
597 747
                 ></el-date-picker>
598 748
               </el-form-item>
599 749
             </el-col>
600
-            <el-col :span="6" :style="isEdit?'width:360px':''">
601
-              <el-form-item label="首次透析医院 : " prop="first_dialysis_hospital">
750
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
751
+              <el-form-item
752
+                label="首次透析医院 : "
753
+                prop="first_dialysis_hospital"
754
+              >
602 755
                 <el-input v-model="form.first_dialysis_hospital"></el-input>
603 756
               </el-form-item>
604 757
             </el-col>
605 758
             <el-col :span="24">
606
-              <el-form-item label="透析之前情况 : " prop="predialysis_condition">
759
+              <el-form-item
760
+                label="透析之前情况 : "
761
+                prop="predialysis_condition"
762
+              >
607 763
                 <el-checkbox-group v-model="form.predialysis_condition">
608 764
                   <el-checkbox
609 765
                     v-for="item in predialysisConditionOptions"
610 766
                     :label="item.label"
611 767
                     :key="item.value"
612 768
                     :value="item.label"
613
-                  >{{item.label}}</el-checkbox>
769
+                    >{{ item.label }}</el-checkbox
770
+                  >
614 771
                 </el-checkbox-group>
615 772
               </el-form-item>
616 773
             </el-col>
617
-            <el-col :span="6" :style="isEdit?'width:360px':''">
618
-              <el-form-item label="本院前透析频率 : " prop="pre_hospital_dialysis_frequency">
619
-                <el-input v-model="form.pre_hospital_dialysis_frequency"></el-input>
774
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
775
+              <el-form-item
776
+                label="本院前透析频率 : "
777
+                prop="pre_hospital_dialysis_frequency"
778
+              >
779
+                <el-input
780
+                  v-model="form.pre_hospital_dialysis_frequency"
781
+                ></el-input>
620 782
               </el-form-item>
621 783
             </el-col>
622
-            <el-col :span="6" :style="isEdit?'width:360px':''">
623
-              <el-form-item label="本院前透析次数 : " prop="pre_hospital_dialysis_times">
784
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
785
+              <el-form-item
786
+                label="本院前透析次数 : "
787
+                prop="pre_hospital_dialysis_times"
788
+              >
624 789
                 <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
625 790
               </el-form-item>
626 791
             </el-col>
627
-            <el-col :span="6" :style="isEdit?'width:360px':''">
628
-              <el-form-item label="本院首次透析 : " prop="hospital_first_dialysis_date">
792
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
793
+              <el-form-item
794
+                label="本院首次透析 : "
795
+                prop="hospital_first_dialysis_date"
796
+              >
629 797
                 <el-date-picker
630 798
                   v-model="form.hospital_first_dialysis_date"
631 799
                   type="date"
@@ -637,8 +805,11 @@
637 805
           </div>
638 806
           <el-col :span="24">
639 807
             <el-form-item>
640
-              <el-button type="text" @click="treat_info_fold = !treat_info_fold">
641
-                {{ treat_info_fold ? '更多治疗信息' : '收起' }}
808
+              <el-button
809
+                type="text"
810
+                @click="treat_info_fold = !treat_info_fold"
811
+              >
812
+                {{ treat_info_fold ? "更多治疗信息" : "收起" }}
642 813
                 <i class="el-icon--right" :class="treat_fold_icon"></i>
643 814
               </el-button>
644 815
             </el-form-item>
@@ -646,28 +817,43 @@
646 817
 
647 818
           <el-col :span="24">
648 819
             <el-form-item label="登记人员 : ">
649
-              <span>{{adminusername}}</span>
820
+              <span>{{ adminusername }}</span>
650 821
             </el-form-item>
651 822
           </el-col>
652 823
 
653 824
           <el-col :span="24" align="right">
654 825
             <el-form-item>
655
-              <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
656 826
               <el-button
657
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
827
+                @click="$router.back(-1)"
828
+                icon="el-icon-refresh"
829
+                size="small"
830
+                >取消</el-button
831
+              >
832
+              <el-button
833
+                :disabled="
834
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
835
+                    ? true
836
+                    : false
837
+                "
658 838
                 @click="onSubmit('form')"
659 839
                 size="small"
660 840
                 type="primary"
661 841
                 icon="el-icon-setting"
662
-              >保存</el-button>
842
+                >保存</el-button
843
+              >
663 844
               <el-button
664
-                v-if="isEdit==false"
845
+                v-if="isEdit == false"
665 846
                 @click="onReSubmit('form')"
666
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
847
+                :disabled="
848
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
849
+                    ? true
850
+                    : false
851
+                "
667 852
                 icon="el-icon-document-add"
668 853
                 size="small"
669 854
                 type="success"
670
-              >保存并继续新增</el-button>
855
+                >保存并继续新增</el-button
856
+              >
671 857
             </el-form-item>
672 858
           </el-col>
673 859
         </el-row>
@@ -1595,4 +1781,3 @@ export default {
1595 1781
   z-index: 998 !important;
1596 1782
 }
1597 1783
 </style>
1598
-