Browse Source

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

XMLWAN 2 years ago
parent
commit
700cc56095

+ 240 - 155
src/xt_pages/dialysis/PatientBox.vue View File

20
             alt=""
20
             alt=""
21
           />
21
           />
22
           <div>
22
           <div>
23
-          <div class="right">
24
-            <h3 class="name">
25
-              {{ schedule.patient.name
26
-              }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
27
-            </h3>
28
-            <span class="num"
29
-              >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
30
-            >
31
-            <div style="margin-left:10px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
32
-          </div>
33
-          <div style="margin-top:5px;text-align:left;height:24px;">
34
-            <span class="tip1" v-if="schedule.prescription == null || schedule.prescription.creater == 0" @click.stop="open(schedule)">
35
-              开处方
36
-            </span>
37
-            <span class="tip2" v-if="schedule.treatment_summary == null || schedule.treatment_summary.dialysis_summary == ''" @click.stop="open1(schedule)">
38
-              开小结
39
-            </span>
40
-            <span class="online" v-show="computeState(schedule) != 4">
41
-              <span :class="stateColor(schedule)">{{ stateText(schedule) }}</span>
42
-            </span>
23
+            <div class="right">
24
+              <h3 class="name">
25
+                {{ schedule.patient.name
26
+                }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
27
+              </h3>
28
+              <span class="num"
29
+                >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
30
+              >
31
+              <div
32
+                style="
33
+                  margin-left: 10px;
34
+                  font-size: 12px;
35
+                  color: #34495e;
36
+                  margin-right: 5px;
37
+                "
38
+                v-if="
39
+                  schedule.assessment_before_dislysis && patientStateVal == 1
40
+                "
41
+              >
42
+                签到时间:{{
43
+                  getTime(schedule.assessment_before_dislysis.created_time)
44
+                }}
45
+              </div>
46
+            </div>
47
+            <div style="margin-top: 5px; text-align: left; height: 24px">
48
+              <span
49
+                class="tip1"
50
+                v-if="
51
+                  schedule.prescription == null ||
52
+                  schedule.prescription.creater == 0
53
+                "
54
+                @click.stop="open(schedule)"
55
+              >
56
+                开处方
57
+              </span>
58
+              <span
59
+                class="tip2"
60
+                v-if="
61
+                  schedule.treatment_summary == null ||
62
+                  schedule.treatment_summary.dialysis_summary == ''
63
+                "
64
+                @click.stop="open1(schedule)"
65
+              >
66
+                开小结
67
+              </span>
68
+              <span class="online" v-show="computeState(schedule) != 4">
69
+                <span :class="stateColor(schedule)">{{
70
+                  stateText(schedule)
71
+                }}</span>
72
+              </span>
73
+            </div>
43
           </div>
74
           </div>
75
+          <!-- v-if="schedule.patient.troble_shoot == 1" -->
76
+          <div class="difficult" v-if="schedule.patient.troble_shoot == 1">疑难内瘘</div>
77
+          <div></div>
44
 
78
 
45
-          <div class="difficult" v-if="schedule.patient.troble_shoot == 1">
46
-            疑难内瘘
47
-          </div>
48
-        </div>
49
-        </div>
50
-        <div>
51
           <!-- <div style="height:24px;margin-right: 10px;">
79
           <!-- <div style="height:24px;margin-right: 10px;">
52
             <div class="online" v-show="computeState(schedule) != 4">
80
             <div class="online" v-show="computeState(schedule) != 4">
53
               <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
81
               <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
57
         </div>
85
         </div>
58
       </div>
86
       </div>
59
       <div class="dislysisInfo">
87
       <div class="dislysisInfo">
60
-        <p>体重(前/后kg):
61
-          {{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}
62
-          <span v-if="schedule.assessment_after_dislysis && schedule.assessment_after_dislysis.weight_after>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
63
-        <p>目标超滤量:
64
-          <span v-if="schedule.prescription && schedule.prescription.target_ultrafiltration>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
65
-       
88
+        <p>
89
+          体重(前/后kg):
90
+          {{
91
+            schedule.assessment_before_dislysis
92
+              ? schedule.assessment_before_dislysis.weight_before
93
+              : ""
94
+          }}
95
+          <span
96
+            v-if="
97
+              schedule.assessment_after_dislysis &&
98
+              schedule.assessment_after_dislysis.weight_after > 0
99
+            "
100
+            >/{{
101
+              schedule.assessment_after_dislysis
102
+                ? schedule.assessment_after_dislysis.weight_after
103
+                : ""
104
+            }}</span
105
+          >
66
         </p>
106
         </p>
67
-        <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">
68
-          透析器/灌流器:{{ schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : '' }}
69
-           <span v-if="schedule.prescription!=null">{{schedule.prescription?schedule.prescription.dialysis_dialyszers:''}}</span>
70
-           <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_irrigation!=''">/</span>
71
-           <span v-if="schedule.prescription!=null">{{schedule.prescription?schedule.prescription.dialysis_irrigation:''}}</span>
107
+        <p>
108
+          目标超滤量:
109
+          <span
110
+            v-if="
111
+              schedule.prescription &&
112
+              schedule.prescription.target_ultrafiltration > 0
113
+            "
114
+            >{{
115
+              schedule.prescription
116
+                ? schedule.prescription.target_ultrafiltration
117
+                : ""
118
+            }}</span
119
+          >
120
+        </p>
121
+        <p
122
+          :title="
123
+            schedule.prescription
124
+              ? schedule.prescription.dialyzer_perfusion_apparatus
125
+              : ''
126
+          "
127
+        >
128
+          透析器/灌流器:{{
129
+            schedule.prescription
130
+              ? schedule.prescription.dialyzer_perfusion_apparatus
131
+              : ""
132
+          }}
133
+          <span v-if="schedule.prescription != null">{{
134
+            schedule.prescription
135
+              ? schedule.prescription.dialysis_dialyszers
136
+              : ""
137
+          }}</span>
138
+          <span
139
+            v-if="
140
+              schedule.prescription != null &&
141
+              schedule.prescription.dialysis_irrigation != ''
142
+            "
143
+            >/</span
144
+          >
145
+          <span v-if="schedule.prescription != null">{{
146
+            schedule.prescription
147
+              ? schedule.prescription.dialysis_irrigation
148
+              : ""
149
+          }}</span>
72
         </p>
150
         </p>
73
       </div>
151
       </div>
74
-      <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
152
+      <div
153
+        class="function"
154
+        :class="functionColor(schedule)"
155
+        :id="modeColor(schedule.mode_id)"
156
+      >
75
         <ul>
157
         <ul>
76
           <li>
158
           <li>
77
-            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f5;</span>班次 :
159
+            <span class="iconfont" :id="modeColor(schedule.mode_id)"
160
+              >&#xe6f5;</span
161
+            >班次 :
78
             {{ timeTypeText(schedule) }}
162
             {{ timeTypeText(schedule) }}
79
           </li>
163
           </li>
80
           <li>
164
           <li>
81
-            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6de;</span>床位号 :
165
+            <span class="iconfont" :id="modeColor(schedule.mode_id)"
166
+              >&#xe6de;</span
167
+            >床位号 :
82
             {{ schedule.device_number.number }}
168
             {{ schedule.device_number.number }}
83
           </li>
169
           </li>
84
           <li>
170
           <li>
85
-            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f6;</span>透析模式 :
171
+            <span class="iconfont" :id="modeColor(schedule.mode_id)"
172
+              >&#xe6f6;</span
173
+            >透析模式 :
86
             {{
174
             {{
87
               schedule.mode_id &&
175
               schedule.mode_id &&
88
               $store.getters.treatment_mode[schedule.mode_id]
176
               $store.getters.treatment_mode[schedule.mode_id]
126
       :last_prescription="lastDialysisPrescribe"
214
       :last_prescription="lastDialysisPrescribe"
127
       :dry_weight="lastDryWeightDislysis"
215
       :dry_weight="lastDryWeightDislysis"
128
       :schedual="temp_schedual"
216
       :schedual="temp_schedual"
129
-      :date='date'
217
+      :date="date"
130
       :stockType="stockType"
218
       :stockType="stockType"
131
     ></dialysis-prescription-dialog>
219
     ></dialysis-prescription-dialog>
132
     <treatment-summary-dialog
220
     <treatment-summary-dialog
139
 </template>
227
 </template>
140
 
228
 
141
 <script>
229
 <script>
142
-
143
 import { parseTime } from "@/utils";
230
 import { parseTime } from "@/utils";
144
 import { jsGetAge } from "@/utils/tools";
231
 import { jsGetAge } from "@/utils/tools";
145
 import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
232
 import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
151
 
238
 
152
 export default {
239
 export default {
153
   name: "PatientBox",
240
   name: "PatientBox",
154
-  components:{
241
+  components: {
155
     dialysisPrescriptionDialog,
242
     dialysisPrescriptionDialog,
156
-    treatmentSummaryDialog
243
+    treatmentSummaryDialog,
157
   },
244
   },
158
   data() {
245
   data() {
159
     return {
246
     return {
163
           yc: false,
250
           yc: false,
164
           name: "张三",
251
           name: "张三",
165
           sex: "女",
252
           sex: "女",
166
-          age: 90
253
+          age: 90,
167
         },
254
         },
168
         {
255
         {
169
           state: 3,
256
           state: 3,
170
           yc: true,
257
           yc: true,
171
           name: "张三",
258
           name: "张三",
172
           sex: "女",
259
           sex: "女",
173
-          age: 90
260
+          age: 90,
174
         },
261
         },
175
         {
262
         {
176
           state: 4,
263
           state: 4,
177
           yc: true,
264
           yc: true,
178
           name: "张三",
265
           name: "张三",
179
           sex: "女",
266
           sex: "女",
180
-          age: 90
267
+          age: 90,
181
         },
268
         },
182
         {
269
         {
183
           state: 1,
270
           state: 1,
184
           yc: true,
271
           yc: true,
185
           name: "张三",
272
           name: "张三",
186
           sex: "女",
273
           sex: "女",
187
-          age: 90
188
-        }
274
+          age: 90,
275
+        },
189
       ],
276
       ],
190
       //
277
       //
191
       longAdvices: [],
278
       longAdvices: [],
236
       headNurses: [],
323
       headNurses: [],
237
       lastDialysisPrescribe: { id: 0 },
324
       lastDialysisPrescribe: { id: 0 },
238
       temp_schedual: null,
325
       temp_schedual: null,
239
-      date:'',
240
-      modedata:0,
241
-      stockType:[],
326
+      date: "",
327
+      modedata: 0,
328
+      stockType: [],
242
     };
329
     };
243
   },
330
   },
244
   props: {
331
   props: {
245
     schedules: {
332
     schedules: {
246
-      type: Array
333
+      type: Array,
247
     },
334
     },
248
-    patientStateVal:Number
335
+    patientStateVal: Number,
249
   },
336
   },
250
- 
337
+
251
   methods: {
338
   methods: {
252
-    stateColor: function(schedual) {
339
+    stateColor: function (schedual) {
253
       var state = this.computeState(schedual);
340
       var state = this.computeState(schedual);
254
       if (state == 1) {
341
       if (state == 1) {
255
         return "blue";
342
         return "blue";
261
         return "blue";
348
         return "blue";
262
       }
349
       }
263
     },
350
     },
264
-    functionColor: function(schedual) {
351
+    functionColor: function (schedual) {
265
       var state = this.computeState(schedual);
352
       var state = this.computeState(schedual);
266
       if (state == 1 || state == 3) {
353
       if (state == 1 || state == 3) {
267
         return "blue";
354
         return "blue";
271
         return "blue";
358
         return "blue";
272
       }
359
       }
273
     },
360
     },
274
-    borderColor: function(schedual) {
361
+    borderColor: function (schedual) {
275
       var yc = this.isAbnormal(schedual);
362
       var yc = this.isAbnormal(schedual);
276
       if (yc == true) {
363
       if (yc == true) {
277
         return "red";
364
         return "red";
279
         return "gray";
366
         return "gray";
280
       }
367
       }
281
     },
368
     },
282
-    stateText: function(schedual) {
369
+    stateText: function (schedual) {
283
       var state = this.computeState(schedual);
370
       var state = this.computeState(schedual);
284
       if (state == 1) {
371
       if (state == 1) {
285
         return "已上机";
372
         return "已上机";
292
         return "未上机";
379
         return "未上机";
293
       }
380
       }
294
     },
381
     },
295
-    computeState: function(schedual) {
382
+    computeState: function (schedual) {
296
       if (schedual.dialysis_order == null) {
383
       if (schedual.dialysis_order == null) {
297
         // 未上机
384
         // 未上机
298
         return 4;
385
         return 4;
311
       }
398
       }
312
     },
399
     },
313
 
400
 
314
-    orderState: function(schedual) {
401
+    orderState: function (schedual) {
315
       if (schedual.dialysis_order == null) {
402
       if (schedual.dialysis_order == null) {
316
         // 未上机
403
         // 未上机
317
         return 4;
404
         return 4;
329
         return 1;
416
         return 1;
330
       }
417
       }
331
     },
418
     },
332
-    isAbnormal: function(schedual) {
419
+    isAbnormal: function (schedual) {
333
       return false; // schedual.yc;
420
       return false; // schedual.yc;
334
     },
421
     },
335
-    timeTypeText: function(schedual) {
422
+    timeTypeText: function (schedual) {
336
       if (schedual.schedule_type == 1) {
423
       if (schedual.schedule_type == 1) {
337
         return "上午";
424
         return "上午";
338
       } else if (schedual.schedule_type == 2) {
425
       } else if (schedual.schedule_type == 2) {
341
         return "晚上";
428
         return "晚上";
342
       }
429
       }
343
     },
430
     },
344
-    genderText: function(schedual) {
431
+    genderText: function (schedual) {
345
       if (schedual.patient.gender == 0) {
432
       if (schedual.patient.gender == 0) {
346
         return "未知";
433
         return "未知";
347
       } else if (schedual.patient.gender == 1) {
434
       } else if (schedual.patient.gender == 1) {
350
         return "女";
437
         return "女";
351
       }
438
       }
352
     },
439
     },
353
-    age: function(schedual) {
440
+    age: function (schedual) {
354
       if (schedual.patient.birthday == 0) {
441
       if (schedual.patient.birthday == 0) {
355
         return "";
442
         return "";
356
       } else {
443
       } else {
367
       // // console.log(birthdayYear)
454
       // // console.log(birthdayYear)
368
       // return nowYear - birthdayYear
455
       // return nowYear - birthdayYear
369
     },
456
     },
370
-    getAge: function(val) {
457
+    getAge: function (val) {
371
       var thisLen = val.patient.id_card_no.length;
458
       var thisLen = val.patient.id_card_no.length;
372
       var birth = "";
459
       var birth = "";
373
       if (thisLen == 15) {
460
       if (thisLen == 15) {
385
       var age = jsGetAge(birthtwo, "-");
472
       var age = jsGetAge(birthtwo, "-");
386
       return age;
473
       return age;
387
     },
474
     },
388
-    detailAction: function(schedual) {
475
+    detailAction: function (schedual) {
389
       var patient_id = schedual.patient_id;
476
       var patient_id = schedual.patient_id;
390
       var date = schedual.schedule_date;
477
       var date = schedual.schedule_date;
391
       this.$router.push({
478
       this.$router.push({
394
           patient_id: patient_id,
481
           patient_id: patient_id,
395
           date: date,
482
           date: date,
396
           patient_name: schedual.patient.name,
483
           patient_name: schedual.patient.name,
397
-          mode_id:schedual.mode_id
398
-        }
484
+          mode_id: schedual.mode_id,
485
+        },
399
       });
486
       });
400
     },
487
     },
401
     //
488
     //
402
-    getScheduleDetail: function() {
489
+    getScheduleDetail: function () {
403
       var dateStr = parseTime(this.date, "{y}-{m}-{d}");
490
       var dateStr = parseTime(this.date, "{y}-{m}-{d}");
404
       this.doctor_advices = [];
491
       this.doctor_advices = [];
405
-      getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
492
+      getDialysisScheduleDetail(this.patient_id, dateStr).then((rs) => {
406
         var resp = rs.data;
493
         var resp = rs.data;
407
         if (resp.state == 1) {
494
         if (resp.state == 1) {
408
           var patient = resp.data.patient; // 患者信息
495
           var patient = resp.data.patient; // 患者信息
409
-         
496
+
410
           var schedual = resp.data.schedual; // 患者排班信息
497
           var schedual = resp.data.schedual; // 患者排班信息
411
           var prescription = resp.data.prescription; // 透析处方
498
           var prescription = resp.data.prescription; // 透析处方
412
-          if(prescription!=null){
413
-              if(prescription.body_fluid == -2 ){
414
-                 prescription.body_fluid = 0
415
-             }
499
+          if (prescription != null) {
500
+            if (prescription.body_fluid == -2) {
501
+              prescription.body_fluid = 0;
502
+            }
416
           }
503
           }
417
-          console.log("透析处方323332323223323223",prescription)
504
+          console.log("透析处方323332323223323223", prescription);
418
           var solution = resp.data.solution; // 透析方案
505
           var solution = resp.data.solution; // 透析方案
419
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
506
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
420
-          console.log("receiver_treatment_access",receiver_treatment_access)
507
+          console.log("receiver_treatment_access", receiver_treatment_access);
421
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
508
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
422
-          console.log("透前评估",predialysis_evaluation)
423
-           if(predialysis_evaluation !=null){
424
-             if(predialysis_evaluation.blood_access_part_id == -2){
425
-                predialysis_evaluation.blood_access_part_id = 0
426
-             }
427
-           }
509
+          console.log("透前评估", predialysis_evaluation);
510
+          if (predialysis_evaluation != null) {
511
+            if (predialysis_evaluation.blood_access_part_id == -2) {
512
+              predialysis_evaluation.blood_access_part_id = 0;
513
+            }
514
+          }
428
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
515
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
429
-          
516
+
430
           var double_check = resp.data.double_check; // 双人核对
517
           var double_check = resp.data.double_check; // 双人核对
431
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
518
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
432
-        
519
+
433
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
520
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
434
           var monitor_records = resp.data.monitor_records; // 透析监测
521
           var monitor_records = resp.data.monitor_records; // 透析监测
435
           var dialysis_order = resp.data.dialysis_order; // 透析记录
522
           var dialysis_order = resp.data.dialysis_order; // 透析记录
449
           var aliquid_info = resp.data.aliquid_info;
536
           var aliquid_info = resp.data.aliquid_info;
450
 
537
 
451
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
538
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
452
-          console.log("上次透前评估",lastPredialysisEvaluation)
453
-          if(lastPredialysisEvaluation !=null){
454
-             if(lastPredialysisEvaluation.blood_access_part_id == -2){
455
-               lastPredialysisEvaluation.blood_access_part_id = 0
456
-             }
539
+          console.log("上次透前评估", lastPredialysisEvaluation);
540
+          if (lastPredialysisEvaluation != null) {
541
+            if (lastPredialysisEvaluation.blood_access_part_id == -2) {
542
+              lastPredialysisEvaluation.blood_access_part_id = 0;
543
+            }
457
           }
544
           }
458
           var lastMonitorRecord = resp.data.lastMonitorRecord;
545
           var lastMonitorRecord = resp.data.lastMonitorRecord;
459
           var lastAssessmentAfterDislysis =
546
           var lastAssessmentAfterDislysis =
462
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
549
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
463
 
550
 
464
           var system_prescribe = resp.data.system_prescribe;
551
           var system_prescribe = resp.data.system_prescribe;
465
-          
466
-          var stockType =  resp.data.stockType
467
-          this.stockType = stockType
468
-          console.log("元单快乐222222",this.stockType)
469
-          
552
+
553
+          var stockType = resp.data.stockType;
554
+          this.stockType = stockType;
555
+          console.log("元单快乐222222", this.stockType);
556
+
470
           this.$refs.prescription.setLastRecord(
557
           this.$refs.prescription.setLastRecord(
471
             schedual,
558
             schedual,
472
             lastAssessmentAfterDislysis,
559
             lastAssessmentAfterDislysis,
505
           this.patient = patient;
592
           this.patient = patient;
506
           this.schedual = schedual == null ? { id: 0 } : schedual;
593
           this.schedual = schedual == null ? { id: 0 } : schedual;
507
           this.prescription = prescription == null ? { id: 0 } : prescription;
594
           this.prescription = prescription == null ? { id: 0 } : prescription;
508
-          console.log('this.prescription',this.prescription)
595
+          console.log("this.prescription", this.prescription);
509
           this.solution = solution == null ? { id: 0 } : solution;
596
           this.solution = solution == null ? { id: 0 } : solution;
510
-          console.log('this.solution',this.solution)
597
+          console.log("this.solution", this.solution);
511
           this.receiver_treatment_access =
598
           this.receiver_treatment_access =
512
             receiver_treatment_access == null
599
             receiver_treatment_access == null
513
               ? { id: 0 }
600
               ? { id: 0 }
533
           this.devices = resp.data.devices;
620
           this.devices = resp.data.devices;
534
           this.device_numbers = resp.data.device_numbers;
621
           this.device_numbers = resp.data.device_numbers;
535
 
622
 
536
-          
537
-
538
           var device_map = {};
623
           var device_map = {};
539
           for (let index = 0; index < this.devices.length; index++) {
624
           for (let index = 0; index < this.devices.length; index++) {
540
             const device = this.devices[index];
625
             const device = this.devices[index];
555
             device_number_map[device_number.id] = device_number;
640
             device_number_map[device_number.id] = device_number;
556
           }
641
           }
557
           this.device_number_map = device_number_map;
642
           this.device_number_map = device_number_map;
558
-          this.getLongAdvice()
643
+          this.getLongAdvice();
559
         } else {
644
         } else {
560
           this.$message.error(resp.msg);
645
           this.$message.error(resp.msg);
561
-         
562
         }
646
         }
563
 
647
 
564
         if (this.lastDialysisPrescribe != null) {
648
         if (this.lastDialysisPrescribe != null) {
571
     },
655
     },
572
     getLongAdvice() {
656
     getLongAdvice() {
573
       let params = {
657
       let params = {
574
-        patient_id: this.patient_id
658
+        patient_id: this.patient_id,
575
       };
659
       };
576
-      getLongAdvice(params).then(rs => {
660
+      getLongAdvice(params).then((rs) => {
577
         var resp = rs.data;
661
         var resp = rs.data;
578
         if (resp.state == 1) {
662
         if (resp.state == 1) {
579
           var status = parseInt(resp.data.status);
663
           var status = parseInt(resp.data.status);
616
         }
700
         }
617
       });
701
       });
618
     },
702
     },
619
-    adviceFunc: function() {
703
+    adviceFunc: function () {
620
       this.$emit("advice");
704
       this.$emit("advice");
621
     },
705
     },
622
-    open(schedual){
623
-     
624
-      this.date = schedual.schedule_date
625
-      this.patient_id = schedual.patient_id
626
-      this.modedata = 1
627
-      this.getScheduleDetail()
706
+    open(schedual) {
707
+      this.date = schedual.schedule_date;
708
+      this.patient_id = schedual.patient_id;
709
+      this.modedata = 1;
710
+      this.getScheduleDetail();
628
       // this.getLongAdvice()
711
       // this.getLongAdvice()
629
-      this.$refs.prescription.show(this.prescription,schedual);
630
-      
712
+      this.$refs.prescription.show(this.prescription, schedual);
631
     },
713
     },
632
-    open1(schedual){
633
-      this.date = schedual.schedule_date
634
-      this.patient_id = schedual.patient_id
635
-      this.getScheduleDetail()
636
-      this.getLongAdvice()
637
-      this.$refs.treatmentSummary.show(this.treatment_summary,this.date);
638
-      
714
+    open1(schedual) {
715
+      this.date = schedual.schedule_date;
716
+      this.patient_id = schedual.patient_id;
717
+      this.getScheduleDetail();
718
+      this.getLongAdvice();
719
+      this.$refs.treatmentSummary.show(this.treatment_summary, this.date);
639
     },
720
     },
640
-    getTime(date){
641
-      date = new Date(date * 1000)
642
-      var Y = date.getFullYear() + '-';
643
-      var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
644
-      var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
645
-      var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
646
-      var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
647
-      var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
648
-      
649
-      let strDate = h  + ':' + m;
721
+    getTime(date) {
722
+      date = new Date(date * 1000);
723
+      var Y = date.getFullYear() + "-";
724
+      var M =
725
+        date.getMonth() + 1 < 10
726
+          ? "0" + (date.getMonth() + 1)
727
+          : date.getMonth() + 1;
728
+      var D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
729
+      var h = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
730
+      var m =
731
+        date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
732
+      var s =
733
+        date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
734
+
735
+      let strDate = h + ":" + m;
650
       return strDate;
736
       return strDate;
651
     },
737
     },
652
-    modeColor (id) {
738
+    modeColor(id) {
653
       if (id == 1) {
739
       if (id == 1) {
654
-
655
       } else if (id == 2) {
740
       } else if (id == 2) {
656
-        return 'modeRed'
741
+        return "modeRed";
657
       } else if (id == 3) {
742
       } else if (id == 3) {
658
-        return 'modePurple'
743
+        return "modePurple";
659
       }
744
       }
660
-    }
745
+    },
661
   },
746
   },
662
 };
747
 };
663
 </script>
748
 </script>
716
       .right {
801
       .right {
717
         // float: left;
802
         // float: left;
718
         // text-align: left;
803
         // text-align: left;
719
-        display:flex;
804
+        display: flex;
720
         align-items: center;
805
         align-items: center;
721
         margin-top: 6px;
806
         margin-top: 6px;
722
         .name {
807
         .name {
725
           font-weight: bold;
810
           font-weight: bold;
726
           height: 20px;
811
           height: 20px;
727
           line-height: 20px;
812
           line-height: 20px;
728
-          margin-right:10px;
813
+          margin-right: 10px;
729
           .yc {
814
           .yc {
730
             background: #ff7979;
815
             background: #ff7979;
731
             color: #fff;
816
             color: #fff;
744
           color: #7b8a97;
829
           color: #7b8a97;
745
         }
830
         }
746
       }
831
       }
747
-      .tip1{
832
+      .tip1 {
748
         background: #4fc7cb;
833
         background: #4fc7cb;
749
         border-radius: 5px;
834
         border-radius: 5px;
750
         text-align: center;
835
         text-align: center;
756
         height: 24px;
841
         height: 24px;
757
         line-height: 24px;
842
         line-height: 24px;
758
       }
843
       }
759
-      .tip2{
844
+      .tip2 {
760
         background: #7bce91;
845
         background: #7bce91;
761
         border-radius: 5px;
846
         border-radius: 5px;
762
         text-align: center;
847
         text-align: center;
783
         border-radius: 4px;
868
         border-radius: 4px;
784
         margin: 0 auto;
869
         margin: 0 auto;
785
         font-size: 12px;
870
         font-size: 12px;
786
-        margin-top:4px;
871
+        margin-top: 4px;
787
         display: inline-block;
872
         display: inline-block;
788
       }
873
       }
789
       .blue {
874
       .blue {
807
       }
892
       }
808
     }
893
     }
809
   }
894
   }
810
-  .dislysisInfo{
895
+  .dislysisInfo {
811
     color: rgb(123, 138, 151);
896
     color: rgb(123, 138, 151);
812
     border-bottom: 1px solid rgb(229, 229, 229);
897
     border-bottom: 1px solid rgb(229, 229, 229);
813
     padding-left: 80px;
898
     padding-left: 80px;
814
-    >p{
899
+    > p {
815
       margin-bottom: 5px;
900
       margin-bottom: 5px;
816
-      overflow:hidden;
817
-      text-overflow:ellipsis;
818
-      white-space:nowrap;
901
+      overflow: hidden;
902
+      text-overflow: ellipsis;
903
+      white-space: nowrap;
819
     }
904
     }
820
   }
905
   }
821
 }
906
 }
822
 .red {
907
 .red {
823
   border: 1px #ff7979 solid;
908
   border: 1px #ff7979 solid;
824
 }
909
 }
825
-#modeRed{
826
-  color:#ed5555;
910
+#modeRed {
911
+  color: #ed5555;
827
 }
912
 }
828
-#modePurple{
913
+#modePurple {
829
   color: #53b86e;
914
   color: #53b86e;
830
 }
915
 }
831
 
916
 
832
-.difficult{
833
-  width: 100px;
834
-  height: 40px;
917
+.difficult {
918
+  width: 82px;
919
+  height: 33px;
835
   border-radius: 0 0 0 30px;
920
   border-radius: 0 0 0 30px;
836
   background: #78d660;
921
   background: #78d660;
837
   text-align: center;
922
   text-align: center;
838
-  line-height: 40px;
923
+  line-height: 33px;
839
   position: relative;
924
   position: relative;
840
-  bottom: 64px;
841
-  left: 179px;
925
+  bottom: 9px;
926
+  left: 63px;
842
   color: white;
927
   color: white;
843
 }
928
 }
844
 </style>
929
 </style>

+ 1 - 0
src/xt_pages/outpatientDoctorStation/template/printSix.vue View File

147
             <div style="width:120px;">
147
             <div style="width:120px;">
148
                 医师:
148
                 医师:
149
             <span>{{ item.doctor ? item.doctor : "" }} </span>
149
             <span>{{ item.doctor ? item.doctor : "" }} </span>
150
+            
150
             </div>
151
             </div>
151
           
152
           
152
           </div>
153
           </div>

+ 3 - 3
src/xt_pages/stock/drugs/query.vue View File

147
            <template slot-scope="scope">
147
            <template slot-scope="scope">
148
              <tr style="background: none" v-for="(item,index) in scope.row.drug_warehouse" :key="index">
148
              <tr style="background: none" v-for="(item,index) in scope.row.drug_warehouse" :key="index">
149
               <td style="border-right: none; border-inline-end: none;text-align: center">
149
               <td style="border-right: none; border-inline-end: none;text-align: center">
150
-               {{getWarehoseInfoSeven(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,item.storehouse_id)}}
150
+               {{getWarehoseInfoSeven(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,item.storehouse_id)}}&nbsp;
151
               </td>
151
               </td>
152
             </tr>
152
             </tr>
153
            </template>
153
            </template>
156
            <template slot-scope="scope">
156
            <template slot-scope="scope">
157
             <tr style="background: none" v-for="(item,index) in scope.row.drug_warehouse" :key="index">
157
             <tr style="background: none" v-for="(item,index) in scope.row.drug_warehouse" :key="index">
158
               <td style="border-right: none; border-inline-end: none;text-align: center">
158
               <td style="border-right: none; border-inline-end: none;text-align: center">
159
-              {{getOutFlushNight(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info,item.storehouse_id)}}
159
+              {{getOutFlushNight(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info,item.storehouse_id)}}&nbsp;
160
               </td>
160
               </td>
161
             </tr>
161
             </tr>
162
            </template>
162
            </template>
166
            <template slot-scope="scope">
166
            <template slot-scope="scope">
167
               <tr style="background: none" v-for="(item,index) in scope.row.drug_warehouse" :key="index">
167
               <tr style="background: none" v-for="(item,index) in scope.row.drug_warehouse" :key="index">
168
                 <td style="border-right: none; border-inline-end: none;text-align: center">
168
                 <td style="border-right: none; border-inline-end: none;text-align: center">
169
-                {{getOverFlushInfoEight(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,item.storehouse_id,scope.row.storehouse_id)}}
169
+                {{getOverFlushInfoEight(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,item.storehouse_id,scope.row.storehouse_id)}}&nbsp;
170
                 </td>
170
                 </td>
171
             </tr>
171
             </tr>
172
            </template>
172
            </template>

+ 32 - 3
src/xt_pages/stock/inventoryTransfer/Addtrans.vue View File

30
               placeholder="选择日期"
30
               placeholder="选择日期"
31
             ></el-date-picker>
31
             ></el-date-picker>
32
           </el-form-item>
32
           </el-form-item>
33
-          <span><span style="color:red">*</span>调出仓库:</span>
33
+          <span style="display: inline-block;margin-top: 8px;font-size: 14px;"><span style="color:red;font-size: 14px;">*</span>调出仓库:</span>
34
           <el-form-item  prop="storehouse_out_id">
34
           <el-form-item  prop="storehouse_out_id">
35
               <el-select size="small" v-model="storehouse_out_id" filterable placeholder="请选择调出仓库" @change="changeHouseList">
35
               <el-select size="small" v-model="storehouse_out_id" filterable placeholder="请选择调出仓库" @change="changeHouseList">
36
                 <el-option
36
                 <el-option
41
                 </el-option>
41
                 </el-option>
42
               </el-select>
42
               </el-select>
43
           </el-form-item>
43
           </el-form-item>
44
-          <span><span style="color:red">*</span>调入仓库:</span>
44
+          <span style="display: inline-block;margin-top: 8px;font-size: 14px;"><span style="color:red;font-size: 14px;">*</span>调入仓库:</span>
45
           <el-form-item prop="storehouse_in_id">
45
           <el-form-item prop="storehouse_in_id">
46
             <el-select size="small" v-model="storehouse_in_id" filterable placeholder="请选择调入仓库">
46
             <el-select size="small" v-model="storehouse_in_id" filterable placeholder="请选择调入仓库">
47
             <el-option
47
             <el-option
56
       </div>
56
       </div>
57
      <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
57
      <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
58
       <el-table
58
       <el-table
59
-        :row-style="changColor"
60
         :header-cell-style="{
59
         :header-cell-style="{
61
           backgroundColor: 'rgb(245, 247, 250)',
60
           backgroundColor: 'rgb(245, 247, 250)',
62
           color: '#606266',
61
           color: '#606266',
639
 </script>
638
 </script>
640
 
639
 
641
 <style rel="stylesheet/css" lang="scss" scoped>
640
 <style rel="stylesheet/css" lang="scss" scoped>
641
+
642
+</style>
643
+<style scoped>
644
+/deep/ .el-table__body{
645
+  width: 100% !important;
646
+}
647
+/deep/ .el-table__header{
648
+ width: 100% !important;
649
+}
650
+
651
+/deep/ .el-table--scrollable-x .el-table__body-wrapper {
652
+  overflow: auto;
653
+}
654
+/deep/ .gutter {
655
+  width: 15px !important;
656
+  display: inline-block !important;
657
+}
658
+/deep/ .el-table__fixed-right-patch {
659
+  width: 15px !important;
660
+}
661
+
662
+/deep/ .el-table__fixed-right {
663
+  bottom: 0 !important;
664
+  left: auto;
665
+  right: 0;
666
+}
667
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
668
+  width: 15px !important;
669
+  height: 15px !important;
670
+}
642
 </style>
671
 </style>

+ 32 - 3
src/xt_pages/stock/inventoryTransfer/transEdit.vue View File

32
               placeholder="选择日期"
32
               placeholder="选择日期"
33
             ></el-date-picker>
33
             ></el-date-picker>
34
           </el-form-item>
34
           </el-form-item>
35
-          <span><span style="color:red">*</span>调出仓库:</span>
35
+          <span style="display: inline-block;margin-top: 8px;font-size: 14px;"><span style="color:red;font-size:14px">*</span>调出仓库:</span>
36
           <el-form-item  prop="storehouse_out_id">
36
           <el-form-item  prop="storehouse_out_id">
37
               <el-select size="small" v-model="storehouse_out_id" filterable placeholder="请选择调出仓库"  :disabled="store_disabled"  @change="changeHouseList">
37
               <el-select size="small" v-model="storehouse_out_id" filterable placeholder="请选择调出仓库"  :disabled="store_disabled"  @change="changeHouseList">
38
                 <el-option
38
                 <el-option
43
                 </el-option>
43
                 </el-option>
44
               </el-select>
44
               </el-select>
45
           </el-form-item>
45
           </el-form-item>
46
-          <span><span style="color:red">*</span>调入仓库:</span>
46
+          <span style="display: inline-block;margin-top: 8px;font-size: 14px;"><span style="color:red;font-size:14px">*</span>调入仓库:</span>
47
           <el-form-item prop="storehouse_in_id">
47
           <el-form-item prop="storehouse_in_id">
48
             <el-select size="small" v-model="storehouse_in_id" filterable placeholder="请选择调入仓库"  :disabled="store_disabled">
48
             <el-select size="small" v-model="storehouse_in_id" filterable placeholder="请选择调入仓库"  :disabled="store_disabled">
49
             <el-option
49
             <el-option
58
       </div>
58
       </div>
59
      <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
59
      <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
60
       <el-table
60
       <el-table
61
-        :row-style="changColor"
62
         :header-cell-style="{
61
         :header-cell-style="{
63
           backgroundColor: 'rgb(245, 247, 250)',
62
           backgroundColor: 'rgb(245, 247, 250)',
64
           color: '#606266',
63
           color: '#606266',
818
 </script>
817
 </script>
819
 
818
 
820
 <style rel="stylesheet/css" lang="scss" scoped>
819
 <style rel="stylesheet/css" lang="scss" scoped>
820
+</style>
821
+
822
+<style scoped>
823
+/deep/ .el-table__body{
824
+  width: 100% !important;
825
+}
826
+/deep/ .el-table__header{
827
+ width: 100% !important;
828
+}
829
+
830
+/deep/ .el-table--scrollable-x .el-table__body-wrapper {
831
+  overflow: auto;
832
+}
833
+/deep/ .gutter {
834
+  width: 15px !important;
835
+  display: inline-block !important;
836
+}
837
+/deep/ .el-table__fixed-right-patch {
838
+  width: 15px !important;
839
+}
840
+
841
+/deep/ .el-table__fixed-right {
842
+  bottom: 0 !important;
843
+  left: auto;
844
+  right: 0;
845
+}
846
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
847
+  width: 15px !important;
848
+  height: 15px !important;
849
+}
821
 </style>
850
 </style>

+ 7 - 5
src/xt_pages/stock/stockQuery.vue View File

142
           
142
           
143
             <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
143
             <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
144
               <td style="border-right: none; border-inline-end: none;text-align: center">
144
               <td style="border-right: none; border-inline-end: none;text-align: center">
145
-               {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id)}}
145
+               {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
146
               </td>
146
               </td>
147
             </tr>
147
             </tr>
148
          </template>
148
          </template>
149
        </el-table-column>
149
        </el-table-column>
150
        <el-table-column label="出库数量" align="center">
150
        <el-table-column label="出库数量" align="center">
151
          <template slot-scope="scope">
151
          <template slot-scope="scope">
152
-          <span>
152
+          
153
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
153
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
154
               <td style="border-right: none; border-inline-end: none;text-align: center">
154
               <td style="border-right: none; border-inline-end: none;text-align: center">
155
-              {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id) - getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}
155
+              {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id) - getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
156
               </td>
156
               </td>
157
             </tr>
157
             </tr>
158
-         </span>
158
+         
159
 
159
 
160
          </template>
160
          </template>
161
        </el-table-column>
161
        </el-table-column>
164
          <template slot-scope="scope">
164
          <template slot-scope="scope">
165
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
165
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
166
               <td style="border-right: none; border-inline-end: none;text-align: center">
166
               <td style="border-right: none; border-inline-end: none;text-align: center">
167
-               {{getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}
167
+               {{getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;&nbsp;
168
               </td>
168
               </td>
169
             </tr>
169
             </tr>
170
          </template>
170
          </template>
828
 .spanClass .cell tr {
828
 .spanClass .cell tr {
829
   display: inline-block;
829
   display: inline-block;
830
   width: 100%;
830
   width: 100%;
831
+  /* height: 44px; */
831
 }
832
 }
832
 
833
 
833
 .spanClass .cell tr td {
834
 .spanClass .cell tr td {
835
   border-bottom: 1px solid #ebeef5;
836
   border-bottom: 1px solid #ebeef5;
836
   display: block;
837
   display: block;
837
   width: 100%;
838
   width: 100%;
839
+  min-height: 44px;
838
 }
840
 }
839
 .spanClass .cell tr:last-of-type td{
841
 .spanClass .cell tr:last-of-type td{
840
   border-bottom: none;
842
   border-bottom: none;

+ 2 - 2
src/xt_pages/user/components/PatientForm.vue View File

281
                 </el-form-item>
281
                 </el-form-item>
282
               </el-col>
282
               </el-col>
283
 
283
 
284
-              <el-col :span="8">
284
+              <el-col :span="8" style="margin-bottom: 20px;">
285
                 <el-form-item
285
                 <el-form-item
286
                   label="备注 : "
286
                   label="备注 : "
287
                   prop="sch_remark">
287
                   prop="sch_remark">
314
                 </el-form-item>
314
                 </el-form-item>
315
               </el-col>
315
               </el-col>
316
 
316
 
317
-              <el-col :span="8">
317
+              <el-col :span="24">
318
                 <el-form-item label="传染病 : " prop="contagions">
318
                 <el-form-item label="传染病 : " prop="contagions">
319
                   <el-radio-group v-model="form.is_infectious" @change="changeInfectious">
319
                   <el-radio-group v-model="form.is_infectious" @change="changeInfectious">
320
                     <el-radio :label="1">阴性</el-radio>
320
                     <el-radio :label="1">阴性</el-radio>