Browse Source

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

see999 3 years ago
parent
commit
32c7822e0d

+ 9 - 0
src/api/schedule.js View File

@@ -167,4 +167,13 @@ export function getRemindPrintList(params){
167 167
     method:"get",
168 168
     params:params
169 169
   })
170
+}
171
+
172
+export function getScheduleList(params){
173
+  
174
+  return request({
175
+    url:"/api/schedule/getschedulelist",
176
+    method:"get",
177
+    params:params,
178
+  })
170 179
 }

+ 8 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_fifteen.vue View File

@@ -56,7 +56,7 @@
56 56
                                     <label-box showValue="住院" :isChecked="record.receive_assessment.condition == 1 ? true : false"></label-box>
57 57
                                 </td>
58 58
                                 <td style="padding-left:5px;width:25%;text-align:left;border-left:none;border-right:none;">其他</td>
59
-                                
59
+
60 60
                             </tr>
61 61
                         </table>
62 62
                         <table class="table-box" border="1" style="border:none;border-color:#000;border-collapse: collapse;">
@@ -221,8 +221,8 @@
221 221
                                     </span>
222 222
                                 </span>
223 223
                             <!-- </span> -->
224
-                            
225
-                            
224
+
225
+
226 226
                         </span>
227 227
                     </td>
228 228
                     <td>
@@ -282,7 +282,7 @@
282 282
                         <p style="height:20px;line-height:20px">电导率</p>
283 283
                         <p style="height:20px;line-height:20px">ms/cm</p>
284 284
                     </th>
285
-                    
285
+
286 286
                     <th style="min-width:60px">
287 287
                         <p style="height:20px;line-height:20px">温度</p>
288 288
                         <p style="height:20px;line-height:20px">℃</p>
@@ -332,7 +332,7 @@
332 332
                         </span>
333 333
                     </td>
334 334
 
335
-                    
335
+
336 336
                     </tr>
337 337
                 </table>
338 338
                 <table class="print-table" border="1">
@@ -444,9 +444,9 @@
444 444
                     </tr>
445 445
                     </tbody>
446 446
                 </table>
447
-                
447
+
448 448
                 <table class="print-table" border="1">
449
-                    
449
+
450 450
                 </table>
451 451
 
452 452
 
@@ -575,7 +575,7 @@ export default {
575 575
     this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
576 576
   },
577 577
   mounted() {
578
-    console.log(this.records)
578
+    // console.log(this.records)
579 579
     this.loading = true
580 580
     var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
581 581
     if (ids.length == 0) {

+ 11 - 1
src/xt_pages/dialysis/details/acceptsAssessment.vue View File

@@ -83,6 +83,9 @@
83 83
           <span class="content">{{sickCondition}} </span>
84 84
         </li>
85 85
 
86
+
87
+       
88
+
86 89
         <li v-if="isShow('风险程度')">
87 90
           <label>风险程度:</label>
88 91
           <span class="content">{{ dangerLevel }}</span>
@@ -103,7 +106,14 @@
103 106
             this.record.psychological_assessment_other
104 107
           }}</span>
105 108
         </li>
106
-
109
+        
110
+       <li v-if="isShow('是否跌倒')">
111
+          <label>是否跌倒:</label>
112
+          <span class="content">
113
+            <span v-if="this.record.tumble == 1">是</span>
114
+            <span v-if="this.record.tumble == 2">否</span>
115
+          </span>
116
+        </li>
107 117
 
108 118
       </ul>
109 119
 

+ 31 - 1
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -300,6 +300,14 @@
300 300
           <label>KT/V: </label>
301 301
           <span class="content" >{{ this.record.ktv ? this.record.ktv : ""  }}</span>
302 302
         </li>
303
+        <li v-if="isShow('意识')">
304
+          <label>意识: </label>
305
+          <span class="content" >{{ getConsciousness(this.record.consciousness)}}</span>
306
+        </li>
307
+        <li v-if="isShow('跌倒风险')">
308
+          <label>跌倒风险: </label>
309
+          <span class="content" >{{ getFallrisk(this.record.fallrisk)}}</span>
310
+        </li>
303 311
       </ul>
304 312
     </div>
305 313
     <div class="note">
@@ -640,7 +648,8 @@ export default {
640 648
         return ''
641 649
       }
642 650
       return this.record.in_advance_reason_other
643
-    }
651
+    },
652
+   
644 653
   },
645 654
   methods: {
646 655
     getInternal: function() {
@@ -775,6 +784,27 @@ export default {
775 784
         }
776 785
       }
777 786
       return false
787
+    },
788
+     getConsciousness:function(id){
789
+       var consciousnessList = getDataConfig("hemodialysis","consciousness")
790
+     
791
+       var name = ""
792
+       for(let i=0;i<consciousnessList.length;i++){
793
+         if(id == consciousnessList[i].id){
794
+           name= consciousnessList[i].name
795
+         }
796
+      }
797
+      return name
798
+    },
799
+    getFallrisk:function(id){
800
+      var fallriskList = getDataConfig("hemodialysis","fallrisk")
801
+      var name = ""
802
+      for(let i=0;i<fallriskList.length;i++){
803
+        if(id == fallriskList[i].id){
804
+           name = fallriskList[i].name
805
+        }
806
+      }
807
+      return name
778 808
     }
779 809
   }
780 810
 }

+ 46 - 4
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -603,21 +603,23 @@
603 603
         </el-col>
604 604
         <el-col :span="8" v-if="isShow('透析相关高血压')">
605 605
             <el-form-item label="透析相关高血压:">
606
+        
606 607
              <el-select v-model="form.hypertenison">
608
+              <el-option :key="0" label="请选择" :value="0"></el-option>
607 609
               <el-option
608 610
                 v-for="item in option"
609 611
                 :label="item.name"
610 612
                 :value="item.id"
611 613
                 :key="item.id"
612 614
               ></el-option>
613
-             </el-select>
615
+            </el-select>
614 616
             </el-form-item>
615 617
         </el-col>
616 618
          <el-col :span="8" v-if="isShow('透析相关低血压')">
617 619
             <el-form-item label="透析相关低血压">
618 620
              <el-select v-model="form.hypopiesia">
619 621
               <el-option
620
-                v-for="item in option"
622
+                v-for="item in optionOne"
621 623
                 :label="item.name"
622 624
                 :value="item.id"
623 625
                 :key="item.id"
@@ -649,6 +651,30 @@
649 651
              </el-select>
650 652
             </el-form-item>
651 653
         </el-col>
654
+        <el-col :span="8" v-if="isShow('意识')">
655
+            <el-form-item label="意识">
656
+             <el-select v-model="form.consciousness">
657
+              <el-option
658
+                v-for="item in consciousnessList"
659
+                :label="item.name"
660
+                :value="item.id"
661
+                :key="item.id"
662
+              ></el-option>
663
+             </el-select>
664
+            </el-form-item>
665
+        </el-col>
666
+        <el-col :span="8" v-if="isShow('跌倒风险')">
667
+            <el-form-item label="跌倒风险">
668
+             <el-select v-model="form.fallrisk">
669
+              <el-option
670
+                v-for="item in fallriskList"
671
+                :label="item.name"
672
+                :value="item.id"
673
+                :key="item.id"
674
+              ></el-option>
675
+             </el-select>
676
+            </el-form-item>
677
+        </el-col>
652 678
         <el-col :span="24" v-if="isShow('KT/V')">
653 679
             <el-form-item label="KT/V:">
654 680
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
@@ -739,7 +765,10 @@ export default {
739 765
       dialogCruorTitle: '凝血',
740 766
       sealing_fluid_special_name: '',
741 767
       option:[
742
-        {id:0,name:"请选择"},
768
+        {id:"1",name:"有"},
769
+        {id:"2",name:"无"},
770
+      ],
771
+       optionOne:[
743 772
         {id:"1",name:"有"},
744 773
         {id:"2",name:"无"},
745 774
       ],
@@ -814,9 +843,17 @@ export default {
814 843
         other_complication:'',
815 844
         ktv:"",
816 845
         urr:"",
846
+        hypertenison:"",
847
+        hypopiesia:"",
848
+        leave_office_method:"",
849
+        lapse:"",
850
+        consciousness:"",
851
+        fallrisk:"",
817 852
       },
818 853
       lapseList:[],
819
-      leaveOfficeMethod:[]
854
+      leaveOfficeMethod:[],
855
+      consciousnessList:[],
856
+      fallriskList:[]
820 857
     }
821 858
   },
822 859
   watch: {
@@ -1025,6 +1062,8 @@ export default {
1025 1062
       data["hypopiesia"] = parseInt(this.form.hypopiesia)
1026 1063
       data["leave_office_method"] = this.form.leave_office_method
1027 1064
       data["lapse"] = this.form.lapse
1065
+      data["consciousness"] = this.form.consciousness
1066
+      data["fallrisk"] = this.form.fallrisk
1028 1067
       console.log("Paramsquery",data)
1029 1068
       postAssessmentAfterDislysis(ParamsQuery, data)
1030 1069
         .then(response => {
@@ -1292,11 +1331,14 @@ export default {
1292 1331
     this.sealingFluidDisposeOptions = getDataConfig('hemodialysis', 'sealing_fluid_dispose')
1293 1332
     this.lapseList = getDataConfig('hemodialysis', 'lapse')
1294 1333
     this.leaveOfficeMethod = getDataConfig('hemodialysis','leave_office_method')
1334
+    this.consciousnessList = getDataConfig("hemodialysis","consciousness")
1335
+    this.fallriskList = getDataConfig("hemodialysis","fallrisk")
1295 1336
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1296 1337
     this.patientGoseOptions = this.$store.getters.patient_gose
1297 1338
     this.observationContentOptions = this.$store.getters.observation_content
1298 1339
     this.template_id = this.$store.getters.xt_user.template_info.template_id
1299 1340
     this.channels = this.$store.getters.channels
1341
+
1300 1342
     var date = this.$route.query && this.$route.query.date
1301 1343
     this.record_date = uParseTime(date, '{y}-{m}-{d}')
1302 1344
   },

+ 14 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

@@ -229,6 +229,17 @@
229 229
           v-model="receiveTreatmentAsses.psychological_other"
230 230
         ></el-input>
231 231
       </el-form-item>
232
+        <el-form-item label="是否跌倒: " v-if="isShow('是否跌倒')">
233
+        <el-radio
234
+          v-model="receiveTreatmentAsses.tumble"
235
+          label="1"
236
+          >是</el-radio>
237
+        <el-radio
238
+          v-model="receiveTreatmentAsses.tumble"
239
+          label="2"
240
+          >否
241
+        </el-radio>
242
+      </el-form-item>
232 243
     </el-form>
233 244
     <div slot="footer" class="dialog-footer">
234 245
       <el-button @click="handleCancle">取 消</el-button>
@@ -281,7 +292,8 @@ export default {
281 292
         precaution: "",
282 293
         precaution_other: "",
283 294
         admission_number: "",
284
-        diacrisis:""
295
+        diacrisis:"",
296
+        tumble:"",
285 297
       },
286 298
       precautionTwo: []
287 299
     };
@@ -301,6 +313,7 @@ export default {
301 313
       return false;
302 314
     },
303 315
     show(accepts) {
316
+    
304 317
       this.accepts = accepts;
305 318
       // console.log("accepts", accepts);
306 319
       var arr = [];

+ 6 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -828,6 +828,12 @@
828 828
           if (this.lastPredialysisEvaluation.is_infect == 2) {
829 829
             this.lastPredialysisEvaluation.is_infect = "2"
830 830
           }
831
+          if(this.lastPredialysisEvaluation.period == 1){
832
+             this.lastPredialysisEvaluation.period = "1"
833
+          }
834
+          if(this.lastPredialysisEvaluation.period == 2){
835
+             this.lastPredialysisEvaluation.period = "2"
836
+          }
831 837
         }
832 838
 
833 839
 

+ 11 - 294
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -9,15 +9,6 @@
9 9
         type="primary"
10 10
         >打印
11 11
       </el-button>
12
-
13
-      <!-- <el-button
14
-       style="float: right"
15
-       size="small"
16
-       icon="el-icon-printer"
17
-       @click="printActionSetting()"
18
-       type="primary">
19
-        打印设置
20
-      </el-button> -->
21 12
     </div>
22 13
 
23 14
     <div class="cell clearfix">
@@ -34,9 +25,8 @@
34 25
           </li>
35 26
         </ul>
36 27
       </div>
37
-    </div>
38
-    <div  class="cell clearfix">
39
-     <div  class="title"><span class="name">班 次</span> :</div>
28
+
29
+      <div  class="title"><span class="name">班 次</span> :</div>
40 30
       <div class="time">
41 31
         <ul class>
42 32
           <li
@@ -169,65 +159,11 @@
169 159
         </template>
170 160
       </el-table-column>
171 161
     </el-table>
172
-
173
-    <el-dialog
174
-      title="打印设置"
175
-      :visible.sync="dialogVisible"
176
-      width="30%"
177
-      >
178
-     <span>
179
-       <ul>
180
-         <li> 
181
-          <el-checkbox v-model="prescription_status">透析处方状态</el-checkbox>
182
-         </li>
183
-         <li>
184
-          <el-checkbox v-model="week">星期</el-checkbox>
185
-         </li>
186
-         <li>
187
-          <el-checkbox v-model="name">姓名</el-checkbox>
188
-         </li>
189
-         <li>
190
-          <el-checkbox v-model="zone">分区</el-checkbox>
191
-         </li>
192
-         <li>
193
-          <el-checkbox v-model="classes">班次</el-checkbox>
194
-         </li>
195
-         <li>
196
-          <el-checkbox v-model="number">机号</el-checkbox>
197
-         </li>
198
-         <li>
199
-          <el-checkbox v-model="mode">透析模式</el-checkbox>
200
-         </li>
201
-         <li>
202
-          <el-checkbox v-model="dialyzers">透析器</el-checkbox>
203
-         </li>
204
-         <li>
205
-          <el-checkbox v-model="perfusion_apparatus">灌流器</el-checkbox>
206
-         </li>
207
-         <li>
208
-          <el-checkbox v-model="anticoagulant">抗凝剂(商品名称)</el-checkbox>
209
-         </li>
210
-         <li>
211
-          <el-checkbox v-model="anticoagulant_zongliang">总量</el-checkbox>
212
-         </li>
213
-         <li>
214
-          <el-checkbox v-model="doctor_advice">长期医嘱</el-checkbox>
215
-         </li>
216
-       </ul>
217
-      
218
-     </span>
219
-     <span slot="footer" class="dialog-footer">
220
-      <el-button @click="dialogVisible = false">取 消</el-button>
221
-      <el-button type="primary" @click="saveRemindPrint">保 存</el-button>
222
-     </span>
223
-   </el-dialog>
224
-
225
-    
226 162
   </div>
227 163
 </template>
228 164
 
229 165
 <script>
230
-import { getSchedules, getScheduleWeekDay,saveRemindPrint,getRemindPrintList } from "@/api/schedule";
166
+import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
231 167
 import WeekItem from "./WeekItem";
232 168
 
233 169
 export default {
@@ -242,7 +178,6 @@ export default {
242 178
   data() {
243 179
     return {
244 180
       weekArr: [
245
-        { id: 0, name: "全部" },
246 181
         { id: 1, name: "周一" },
247 182
         { id: 2, name: "周二" },
248 183
         { id: 3, name: "周三" },
@@ -273,35 +208,7 @@ export default {
273 208
       },
274 209
       scheduleData: [],
275 210
       modeOptions: null,
276
-      org_id:0,
277
-      dialogVisible:false,
278
-      prescription_status:false,
279
-      week:false,
280
-      name:false,
281
-      zone:false,
282
-      classes:false,
283
-      number:false,
284
-      mode:false,
285
-      dialyzers:false,
286
-      perfusion_apparatus:false,
287
-      anticoagulant:false,
288
-      anticoagulant_zongliang:false,
289
-      doctor_advice:false,
290
-      form:{
291
-        id:0,
292
-        prescription_status:"",
293
-        week:"",
294
-        name:"",
295
-        zone:"",
296
-        classes:"",
297
-        number:"",
298
-        mode:"",
299
-        dialyzers:"",
300
-        perfusion_apparatus:"",
301
-        anticoagulant:"",
302
-        anticoagulant_zongliang:"",
303
-        doctor_advice:"",
304
-      }
211
+      org_id:0
305 212
     };
306 213
   },
307 214
   watch: {
@@ -326,12 +233,11 @@ export default {
326 233
       }
327 234
      },
328 235
     getScheduleWeekDay() {
329
-     
330
-      const params = {
331
-        week_type:this.week_type,
332
-        week_time:this.week_time,
333
-       }
334
-      console.log("param22222",params)
236
+        const params = {
237
+          week_type:this.week_type,
238
+          week_time:this.week_time,
239
+        }
240
+
335 241
       getScheduleWeekDay(params).then(response => {
336 242
         this.scheduleData = [];
337 243
         if (response.data.state == 1) {
@@ -533,196 +439,6 @@ export default {
533 439
         }
534 440
         return name;
535 441
       }
536
-    },
537
-    printActionSetting(){
538
-       this.getlist()
539
-       this.dialogVisible = true
540
-
541
-    },
542
-    saveRemindPrint(){
543
-       console.log("455555555",this.perfusion_apparatus)
544
-
545
-      if(this.perfusion_apparatus == true){
546
-         console.log("3333")
547
-          this.form.perfusion_apparatus = 1
548
-       }
549
-       if(this.perfusion_apparatus == false){
550
-          this.form.perfusion_apparatus = 2
551
-       }
552
-       if(this.prescription_status == true){
553
-         this.form.prescription_status = 1
554
-       }
555
-       if(this.prescription_status == false){
556
-         this.form.prescription_status = 2
557
-       }
558
-       if(this.week == true){
559
-          this.form.week = 1
560
-       }
561
-       if(this.week == false){
562
-          this.form.week = 2
563
-       }
564
-       if(this.name == true){
565
-         this.form.name = 1
566
-       }
567
-       if(this.name == false){
568
-          this.form.name = 2
569
-       }
570
-       if(this.zone == true){
571
-         this.form.zone = 1
572
-       }
573
-       if(this.zone == false){
574
-          this.form.zone = 2
575
-       }
576
-       if(this.classes == true){
577
-         this.form.classes = 1
578
-       }
579
-       if(this.classes == false){
580
-         this.form.classes = 2
581
-       }
582
-       if(this.number == true){
583
-          this.form.number = 1
584
-       }
585
-       if(this.number == false){
586
-         this.form.number = 2
587
-       }
588
-       if(this.mode == true){
589
-           this.form.mode = 1
590
-       }
591
-       if(this.mode == false){
592
-         this.form.mode = 2
593
-       }
594
-       if(this.dialyzers == true){
595
-          this.form.dialyzers = 1
596
-       }
597
-       if(this.dialyzers == false){
598
-          this.form.dialyzers = 2
599
-       }
600
-     
601
-       if(this.anticoagulant == true){
602
-          this.form.anticoagulant = 1
603
-       }
604
-       if(this.anticoagulant == false){
605
-         this.form.anticoagulant = 2
606
-       }
607
-       if(this.anticoagulant_zongliang == true){
608
-          this.form.anticoagulant_zongliang  = 1
609
-       }
610
-       if(this.anticoagulant_zongliang == false){
611
-          this.form.anticoagulant_zongliang = 2
612
-       }
613
-       if(this.doctor_advice == true){
614
-          this.form.doctor_advice =1
615
-       }
616
-       if(this.doctor_advice == false){
617
-          this.form.doctor_advice = 2
618
-       }
619
-       console.log("555555555",this.form.prescription_status)
620
-        var params = {
621
-          id:this.form.id,
622
-          prescription_status:this.form.prescription_status,
623
-          week:this.form.week,
624
-          name:this.form.name,
625
-          zone:this.form.zone,
626
-          classes:this.form.classes,
627
-          number:this.form.number,
628
-          mode:this.form.mode,
629
-          dialyzers:this.form.dialyzers,
630
-          perfusion_apparatus:this.form.perfusion_apparatus,
631
-          anticoagulant:this.form.anticoagulant,
632
-          anticoagulant_zongliang:this.form.anticoagulant_zongliang,
633
-          doctor_advice:this.form.doctor_advice,
634
-        }
635
-       console.log("params",params)
636
-      saveRemindPrint(params).then(response=>{
637
-          if(response.data.state == 1){
638
-             var settting = response.data.data.setting
639
-             this.$message.success("保存成功")
640
-             this.dialogVisible = false
641
-             this.getlist()
642
-          }
643
-      })
644
-    },
645
-    getlist(){
646
-      getRemindPrintList().then(response=>{
647
-         if(response.data.state == 1){
648
-            var list = response.data.data.list
649
-            console.log("list222332",list)
650
-            if(list.anticoagulant == 1){
651
-              console.log("进来22222")
652
-              this.anticoagulant = true
653
-            }
654
-            if(list.anticoagulant == 2){
655
-               this.anticoagulant = false
656
-            }
657
-            if(list.anticoagulant_zongliang == 1){
658
-              this.anticoagulant_zongliang = true
659
-            }
660
-            if(list.anticoagulant_zongliang == 2){
661
-               this.anticoagulant_zongliang = false 
662
-            }
663
-            if(list.classes == 1 ){
664
-                this.classes = true
665
-            }
666
-            if(list.classes == 2){
667
-                this.classes = false
668
-            }
669
-            if(list.dialyzers == 1){
670
-               this.dialyzers = true
671
-            }
672
-            if(list.dialyzers == 2){
673
-               this.dialyzers = false
674
-            }
675
-            if(list.doctor_advice == 1){
676
-               this.doctor_advice = true
677
-            }
678
-            if(list.doctor_advice == 2){
679
-               this.doctor_advice = false
680
-            }
681
-            if(list.name == 1){
682
-               this.name = true
683
-            }
684
-            if(list.name == 2){
685
-               this.name = false
686
-            }
687
-            if(list.number == 1){
688
-               this.number = true
689
-            }
690
-            if(list.number == 2){
691
-              this.number = false
692
-            }
693
-            if(list.perfusion_apparatus == 1){
694
-              this.perfusion_apparatus = true
695
-            }
696
-            if(list.perfusion_apparatus == 2){
697
-               this.perfusion_apparatus = false
698
-            }
699
-            if(list.prescription_status == 1){
700
-               this.prescription_status = true
701
-            }
702
-            if(list.prescription_status == 2){
703
-               this.prescription_status = false
704
-            }
705
-            if(list.week == 1){
706
-               this.week = true
707
-            } 
708
-            if(list.week == 2){
709
-               this.week = false
710
-            }
711
-            if(list.zone == 1){
712
-               this.zone = true
713
-            }
714
-            if(list.zone == 2){
715
-               this.zone = false
716
-            }
717
-            if(list.mode ==1){
718
-               this.mode = true
719
-            }
720
-            if(list.mode == 2){
721
-              this.mode = false
722
-            }
723
-            this.form.id = list.id
724
-         }
725
-      })
726 442
     }
727 443
   },
728 444
   components: {
@@ -731,6 +447,7 @@ export default {
731 447
   created() {
732 448
     this.modeOptions = this.$store.getters.treatment_mode;
733 449
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
450
+    console.log("抗凝机", this.anticoagulants_confit);
734 451
     this.week_type = new Date().getDay();
735 452
     if (this.week_type == 0) {
736 453
       this.week_type = 7;
@@ -739,8 +456,8 @@ export default {
739 456
     //   week_type: this.week_type
740 457
     // };
741 458
     this.getScheduleWeekDay();
459
+    console.log("org2222222",this.$store.getters.xt_user.org.id)
742 460
     this.org_id = this.$store.getters.xt_user.org.id
743
-    // this.getlist()
744 461
   }
745 462
 };
746 463
 </script>