浏览代码

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

XMLWAN 4 年前
父节点
当前提交
f2fab43f09

+ 5 - 4
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

21
         >下一方
21
         >下一方
22
         </el-button>
22
         </el-button>
23
       </div>
23
       </div>
24
-      <div class="txsj">
25
-        {{getContent()}}
26
-      </div>
24
+      
27
 
25
 
28
       <!--<el-table-->
26
       <!--<el-table-->
29
       <!--:header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"-->
27
       <!--:header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"-->
80
         </el-row>
78
         </el-row>
81
 
79
 
82
       </el-form>
80
       </el-form>
81
+      <div style='margin-bottom:20px;'>
82
+        {{getContent()}}
83
+      </div>
83
 
84
 
84
       <el-table
85
       <el-table
85
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
86
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
159
 
160
 
160
       <div slot="footer" class="dialog-footer">
161
       <div slot="footer" class="dialog-footer">
161
         <el-button @click="isLastOrNextVisible = false">取 消</el-button>
162
         <el-button @click="isLastOrNextVisible = false">取 消</el-button>
162
-        <el-button type="primary" @click="AddNewAdvice('adForm')">设为本次透析临嘱</el-button>
163
+        <el-button type="primary" @click="AddNewAdvice('adForm')">设为本次临嘱</el-button>
163
       </div>
164
       </div>
164
     </el-dialog>
165
     </el-dialog>
165
 
166
 

+ 2 - 3
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

777
       :modal-append-to-body="false"
777
       :modal-append-to-body="false"
778
       :append-to-body="true"
778
       :append-to-body="true"
779
     >
779
     >
780
-      <div style="font-size:0.6rem;padding-left:0.38rem;margin-top:0.2rem;">
781
-        <span style="font-weight: bold;color: #409eff;">开始时间:</span>
780
+      <div style='display:flex;align-items:center;'>
781
+        <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
782
         <el-date-picker
782
         <el-date-picker
783
           type="datetime"
783
           type="datetime"
784
           format="yyyy-MM-dd HH:mm"
784
           format="yyyy-MM-dd HH:mm"
785
           value-format="yyyy-MM-dd HH:mm"
785
           value-format="yyyy-MM-dd HH:mm"
786
           placeholder="选择时间"
786
           placeholder="选择时间"
787
           v-model="start_time"
787
           v-model="start_time"
788
-          style="width:100%;"
789
         ></el-date-picker>
788
         ></el-date-picker>
790
 
789
 
791
         <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
790
         <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->

+ 10 - 10
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

44
     </el-form>
44
     </el-form>
45
 
45
 
46
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
46
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
47
-      <el-form-item label="第一核对时间:">
47
+      <el-form-item label="第一核对时间:">
48
         <el-time-picker
48
         <el-time-picker
49
           v-model="first_check_time"
49
           v-model="first_check_time"
50
           format='HH:mm'
50
           format='HH:mm'
53
         </el-time-picker>
53
         </el-time-picker>
54
       </el-form-item>
54
       </el-form-item>
55
 
55
 
56
-      <el-form-item label="第一核对人">
56
+      <el-form-item label="第一核对人">
57
         <el-select v-model="doubleReview.creater" placeholder="请选择核对人">
57
         <el-select v-model="doubleReview.creater" placeholder="请选择核对人">
58
           <el-option v-for="(admin, index) in admin_users" :key="index" :value="admin.id"
58
           <el-option v-for="(admin, index) in admin_users" :key="index" :value="admin.id"
59
                      :label="admin.name"></el-option>
59
                      :label="admin.name"></el-option>
61
       </el-form-item>
61
       </el-form-item>
62
 
62
 
63
 
63
 
64
-      <el-form-item label="第二核对时间:">
64
+      <el-form-item label="第二核对时间:">
65
         <el-time-picker
65
         <el-time-picker
66
           v-model="check_time"
66
           v-model="check_time"
67
           format='HH:mm'
67
           format='HH:mm'
70
         </el-time-picker>
70
         </el-time-picker>
71
       </el-form-item>
71
       </el-form-item>
72
 
72
 
73
-      <el-form-item label="第二核对人">
73
+      <el-form-item label="第二核对人">
74
         <el-select v-model="doubleReview.modifier" placeholder="请选择核对人">
74
         <el-select v-model="doubleReview.modifier" placeholder="请选择核对人">
75
           <el-option v-for="(admin, index) in admin_users" :key="index" :value="admin.id"
75
           <el-option v-for="(admin, index) in admin_users" :key="index" :value="admin.id"
76
                      :label="admin.name"></el-option>
76
                      :label="admin.name"></el-option>
268
             for (let index = 0; index < leng; index++) {
268
             for (let index = 0; index < leng; index++) {
269
               if (this.admin_users[index].id == this.doubleReview.creater) {
269
               if (this.admin_users[index].id == this.doubleReview.creater) {
270
                 let name = this.admin_users[index].name
270
                 let name = this.admin_users[index].name
271
-                desc = '首次核对人员:' + name + ' 首次核对时间:' + time
271
+                desc = '第一核对人员:' + name + ' 第一核对时间:' + time
272
 
272
 
273
                 break
273
                 break
274
               }
274
               }
299
             for (let index = 0; index < leng; index++) {
299
             for (let index = 0; index < leng; index++) {
300
               if (this.admin_users[index].id == this.doubleReview.modifier) {
300
               if (this.admin_users[index].id == this.doubleReview.modifier) {
301
                 let name = this.admin_users[index].name
301
                 let name = this.admin_users[index].name
302
-                desc = '首次核对人员:' + name + ' 首次核对时间:' + time
302
+                desc = '第一核对人员:' + name + ' 第一核对时间:' + time
303
 
303
 
304
                 break
304
                 break
305
               }
305
               }
331
           for (let index = 0; index < leng; index++) {
331
           for (let index = 0; index < leng; index++) {
332
             if (this.admin_users[index].id == this.doubleReview.creater) {
332
             if (this.admin_users[index].id == this.doubleReview.creater) {
333
               let name = this.admin_users[index].name
333
               let name = this.admin_users[index].name
334
-              desc = '首次核对人员:' + name + ' 首次核对时间:' + time
334
+              desc = '第一核对人员:' + name + ' 第一核对时间:' + time
335
 
335
 
336
               break
336
               break
337
             }
337
             }
366
             for (let index = 0; index < leng; index++) {
366
             for (let index = 0; index < leng; index++) {
367
               if (this.admin_users[index].id == this.doubleReview.modifier) {
367
               if (this.admin_users[index].id == this.doubleReview.modifier) {
368
                 let name = this.admin_users[index].name
368
                 let name = this.admin_users[index].name
369
-                desc = '第二核对人员:' + name + ' 第二核对时间:' + time
369
+                desc = '第二核对人员:' + name + ' 第二核对时间:' + time
370
                 break
370
                 break
371
               }
371
               }
372
             }
372
             }
393
             for (let index = 0; index < leng; index++) {
393
             for (let index = 0; index < leng; index++) {
394
               if (this.admin_users[index].id == this.doubleReview.creater) {
394
               if (this.admin_users[index].id == this.doubleReview.creater) {
395
                 let name = this.admin_users[index].name
395
                 let name = this.admin_users[index].name
396
-                desc = '第二核对人员:' + name + ' 第二核对时间:' + time
396
+                desc = '第二核对人员:' + name + ' 第二核对时间:' + time
397
                 break
397
                 break
398
               }
398
               }
399
             }
399
             }
421
           for (let index = 0; index < leng; index++) {
421
           for (let index = 0; index < leng; index++) {
422
             if (this.admin_users[index].id == this.doubleReview.modifier) {
422
             if (this.admin_users[index].id == this.doubleReview.modifier) {
423
               let name = this.admin_users[index].name
423
               let name = this.admin_users[index].name
424
-              desc = '第二核对人员:' + name + ' 第二核对时间:' + time
424
+              desc = '第二核对人员:' + name + ' 第二核对时间:' + time
425
               break
425
               break
426
             }
426
             }
427
           }
427
           }

+ 77 - 72
src/xt_pages/medicalScheduling/schedulingStatistics.vue 查看文件

89
                 <line-chart :options="chart"></line-chart>
89
                 <line-chart :options="chart"></line-chart>
90
             </div>
90
             </div>
91
             <div class="tableTitle">统计表</div>
91
             <div class="tableTitle">统计表</div>
92
-            <el-table class='statisticsTable' :data="tableData" height="250" border ref="tab">
92
+            <el-table class='statisticsTable' :data="tableData" height="250" border ref="tab" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" :row-style="{ color: '#303133' }">
93
                 <el-table-column fixed align="center" prop="date" label="医护姓名" width="100">
93
                 <el-table-column fixed align="center" prop="date" label="医护姓名" width="100">
94
                     <template slot-scope="scope">
94
                     <template slot-scope="scope">
95
                         <span>{{scope.row.user_name}}</span>
95
                         <span>{{scope.row.user_name}}</span>
656
 
656
 
657
             //      this.getArrLength(this.chart.xAxis.data)
657
             //      this.getArrLength(this.chart.xAxis.data)
658
                 let tempArr = [], newArr = []
658
                 let tempArr = [], newArr = []
659
-                    for (let i = 0; i < scheudleTotal.length; i++) {
660
-                        if (tempArr.indexOf(scheudleTotal[i].user_name) === -1) {
661
-                            newArr.push({
662
-                                user_name: scheudleTotal[i].user_name,
663
-                                doctor_id:scheudleTotal[i].doctor_id,
664
-                                list: [{class_name:scheudleTotal[i].class_name,doctor_id:scheudleTotal[i].doctor_id,Count:scheudleTotal[i].Count}]
665
-                            })
666
-                            tempArr.push(scheudleTotal[i].user_name);
667
-                        } else {
668
-                            for (let j = 0; j < newArr.length; j++) {
669
-                                if (newArr[j].user_name == scheudleTotal[i].user_name) {
670
-                                    newArr[j].list.push({class_name:scheudleTotal[i].class_name,doctor_id:scheudleTotal[i].doctor_id,Count:scheudleTotal[i].Count})
671
-                                }
659
+                for (let i = 0; i < scheudleTotal.length; i++) {
660
+                    if (tempArr.indexOf(scheudleTotal[i].user_name) === -1) {
661
+                        newArr.push({
662
+                            user_name: scheudleTotal[i].user_name,
663
+                            doctor_id:scheudleTotal[i].doctor_id,
664
+                            list: [{class_name:scheudleTotal[i].class_name,doctor_id:scheudleTotal[i].doctor_id,Count:scheudleTotal[i].Count}]
665
+                        })
666
+                        tempArr.push(scheudleTotal[i].user_name);
667
+                    } else {
668
+                        for (let j = 0; j < newArr.length; j++) {
669
+                            if (newArr[j].user_name == scheudleTotal[i].user_name) {
670
+                                newArr[j].list.push({class_name:scheudleTotal[i].class_name,doctor_id:scheudleTotal[i].doctor_id,Count:scheudleTotal[i].Count})
672
                             }
671
                             }
673
                         }
672
                         }
674
                     }
673
                     }
674
+                }
675
 
675
 
676
-                    newArr.map(item => {
677
-                        list.map(it => {
678
-                            if(item.doctor_id == it.doctor_id){
679
-                                item.totalminute = it.totalminute
680
-                            }
681
-                        })
676
+                newArr.map(item => {
677
+                    list.map(it => {
678
+                        if(item.doctor_id == it.doctor_id){
679
+                            item.totalminute = it.totalminute
680
+                        }
682
                     })
681
                     })
683
-                    newArr.map(item => {
684
-                        workday.map(it => {
685
-                            if(item.doctor_id == it.doctor_id){
686
-                                item.attendance = it.Count
687
-                            }
688
-                        })
682
+                })
683
+                newArr.map(item => {
684
+                    workday.map(it => {
685
+                        if(item.doctor_id == it.doctor_id){
686
+                            item.attendance = it.Count
687
+                        }
689
                     })
688
                     })
690
-                    newArr.map(item => {
691
-                        noWorkDay.map(it => {
692
-                            if(item.doctor_id == it.doctor_id){
693
-                                item.absence = it.Count
694
-                            }
695
-                        })
689
+                })
690
+                newArr.map(item => {
691
+                    noWorkDay.map(it => {
692
+                        if(item.doctor_id == it.doctor_id){
693
+                            item.absence = it.Count
694
+                        }
696
                     })
695
                     })
697
-
698
-                    let arr = [...newArr]
699
-                    if(val == 0){
700
-                        arr.sort(this.compare('doctor_id'))
701
-                        this.doctorlist.sort(this.compare('admin_user_id'))
702
-                        this.doctorlist.forEach((item, index) => {
703
-                          if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
704
-
705
-                          }else{
706
-                            arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
707
-                          }
708
-                        })
709
-
710
-                        this.tableData = arr
711
-                    }else if(val == 2){
712
-                        arr.sort(this.compare('doctor_id'))
713
-                        this.doctorArr.sort(this.compare('admin_user_id'))
714
-                        this.doctorArr.forEach((item, index) => {
715
-                          if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
716
-
717
-                          }else{
718
-                            arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
719
-                          }
720
-                        })
721
-                       this.tableData = arr
722
-                    }else if(val == 3){
723
-                        arr.sort(this.compare('doctor_id'))
724
-                        this.nurseArr.sort(this.compare('admin_user_id'))
725
-                        this.nurseArr.forEach((item, index) => {
726
-                          if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
727
-
728
-                          }else{
729
-                            arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
730
-                          }
731
-                        })
732
-                        this.tableData = arr
733
-                        this.$nextTick(() => {
734
-                          this.$refs.tab.doLayout()
735
-                        })
736
-                    }
696
+                })
697
+                
698
+                let arr = [...newArr]
699
+                if(val == 0){
700
+                    arr.sort(this.compare('doctor_id'))
701
+                    this.doctorlist.sort(this.compare('admin_user_id'))
702
+                    this.doctorlist.forEach((item, index) => {
703
+                      if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
704
+                    
705
+                      }else{
706
+                        arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
707
+                      }
708
+                    })
709
+                    this.tableData = arr
710
+                    this.$nextTick(() => {
711
+                        this.$refs.tab.doLayout()
712
+                    }) 
713
+                }else if(val == 2){
714
+                    arr.sort(this.compare('doctor_id'))
715
+                    this.doctorArr.sort(this.compare('admin_user_id'))
716
+                    this.doctorArr.forEach((item, index) => {
717
+                      if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
718
+                    
719
+                      }else{
720
+                        arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
721
+                      }
722
+                    })
723
+                    this.tableData = arr
724
+                    this.$nextTick(() => {
725
+                        this.$refs.tab.doLayout()
726
+                    }) 
727
+                }else if(val == 3){
728
+                    arr.sort(this.compare('doctor_id'))
729
+                    this.nurseArr.sort(this.compare('admin_user_id'))
730
+                    this.nurseArr.forEach((item, index) => {
731
+                      if (arr[index] && item.admin_user_id == arr[index].doctor_id) {
732
+                    
733
+                      }else{
734
+                        arr.splice(index, 0, {user_name: item.user_name, doctor_id: item.admin_user_id, list: []})
735
+                      }
736
+                    })
737
+                    this.tableData = arr
738
+                    this.$nextTick(() => {
739
+                        this.$refs.tab.doLayout()
740
+                    }) 
741
+                }   
737
               }
742
               }
738
             })
743
             })
739
         },
744
         },