Bladeren bron

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

28169 1 jaar geleden
bovenliggende
commit
62f3d94b9b

+ 52 - 35
src/xt_pages/user/evaluationtool/RassAssessment.vue Bestand weergeven

@@ -45,36 +45,42 @@
45 45
                           </tr>
46 46
                         </thead>
47 47
                         <tbody>
48
-                          <tr class="bg_color" v-for="(item,index) in RASS" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
49
-                              <td class='bing'>
50
-                                <!-- <div class="rightjiange" style="position: relative;">
51
-                                  <label><input type="radio" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;
52
-                                      <div style="display: inline-block;">{{item.title}}</div>
53
-                                      &nbsp;<div :style="{'display': 'inline-block','width':' 430px','position': 'absolute','top':index ==4 ? '-8px':'0px'}">
54
-                                     {{item.value}}
48
+                          <tr >
49
+                              <td>
50
+                                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
51
+                                  <tr class="bg_color" v-for="(item,index) in RASS" :key="index" 
52
+                                  :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
53
+                                    <td>
54
+                                      <div class="rightjiange" style="position: relative;">
55
+                                        <label style="">
56
+                                          <input type="radio" name="ball" :value="item.value"  @change="handleCheckedCitiesChange"/>
57
+                                          <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
58
+                                          <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
59
+                                              {{ item.value }}
60
+                                          </div>
61
+                                        </label>
55 62
                                       </div>
56
-                                  </label>
57
-                                </div> -->
58
-                                <div class="rightjiange" style="position: relative;">
59
-                                  <label style="">
60
-                                    <input type="radio" name="ball" :value="item.value"  @change="handleCheckedCitiesChange"/>
61
-                                    <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
62
-                                    <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
63
-                                        {{ item.value }}
64
-                                    </div>
65
-                                  </label>
66
-                                </div>
63
+                                    </td>
64
+                                  </tr>
65
+                                </table>
67 66
                               </td>
68
-                              <td class='bing'>
69
-                                <div class="rightjiange" style="position: relative;">
70
-                                  <label style="">
71
-                                    <input type="radio" name="ball" :value="item.value2"  @change="handleCheckedCitiesChange"/>
72
-                                    <div style="display: inline-block;">{{ item.title2 }}</div>&nbsp;
73
-                                    <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 && index !=1 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
74
-                                        {{ item.value2 }}
75
-                                    </div>
76
-                                  </label>
77
-                                </div>
67
+                              <td>
68
+                                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
69
+                                  <tr v-for="(item,index) in RASS1" :key="index"
70
+                                  :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
71
+                                    <td>
72
+                                      <div class="rightjiange" style="position: relative;">
73
+                                        <label style="">
74
+                                          <input type="radio" name="ball" :value="item.value2"  @change="handleCheckedCitiesChange"/>
75
+                                          <div style="display: inline-block;">{{ item.title2 }}</div>&nbsp;
76
+                                          <div :style="{'display': 'inline-block','position': 'absolute','top':index !=0 && index !=1 ? '-8px':'0px','overflow': 'auto','height': '30px'}">
77
+                                              {{ item.value2 }}
78
+                                          </div>
79
+                                        </label>
80
+                                      </div>
81
+                                    </td>
82
+                                  </tr>
83
+                                </table>
78 84
                               </td>
79 85
                           </tr>
80 86
                         </tbody>
@@ -504,11 +510,17 @@ export default {
504 510
                   {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
505 511
                   {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
506 512
                 ],
507
-            RASS:[{title:'-5分', value:'无法唤醒,对声音或物理刺激均无反应',title2:'0分', value2:'警觉的平静的'},
508
-                  {title:'-4分', value:'深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应',title2:'+1分', value2:'不安的焦虑的:焦虑但无强烈的攻击行为'},
509
-                  {title:'-3分', value:'中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)',title2:'+2分', value2:'焦虑的激动的:经常性的无目的活动,人机对抗'},
510
-                  {title:'-2分', value:'轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s',title2:'+3分', value2:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安'},
511
-                  {title:'-1分', value:'困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s',title2:'+4分', value2:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为'},
513
+            RASS:[{title:'-5分', value:'无法唤醒,对声音或物理刺激均无反应'},
514
+                  {title:'-4分', value:'深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应'},
515
+                  {title:'-3分', value:'中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)'},
516
+                  {title:'-2分', value:'轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s'},
517
+                  {title:'-1分', value:'困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s'},
518
+                ],
519
+            RASS1:[{title2:'0分', value2:'警觉的平静的'},
520
+                  {title2:'+1分', value2:'不安的焦虑的:焦虑但无强烈的攻击行为'},
521
+                  {title2:'+2分', value2:'焦虑的激动的:经常性的无目的活动,人机对抗'},
522
+                  {title2:'+3分', value2:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安'},
523
+                  {title2:'+4分', value2:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为'},
512 524
                 ],
513 525
             RassGJ:['NRS','表情法','视觉模拟法','语言描述法','行为学评估量表','其他'],
514 526
             yuyan:[{label:'0无痛',value:0},{label:'1微痛',value:1},{label:'2一般',value:2},{label:'4中度疼痛',value:4},{label:'6中重度疼痛',value:6},{label:'8重度疼痛',value:8},{label:'10无法忍受',value:10}],
@@ -534,6 +546,7 @@ export default {
534 546
         console.log('11111',e.target.value);
535 547
         const lent = this.LOS
536 548
         const len = this.RASS
549
+        const len2=this.RASS1
537 550
         for(let i=0;i<lent.length;i++){
538 551
           if(e.target.value == lent[i].value ){
539 552
             this.RASS_Totalpoints=lent[i].title.split('分')[0]
@@ -544,10 +557,14 @@ export default {
544 557
             console.log('2222',len[y].title.split('分')[0]);
545 558
             this.RASS_Totalpoints = len[y].title.split('分')[0]
546 559
           }
547
-          if(e.target.value == len[y].value2 ){
548
-            this.RASS_Totalpoints = len[y].title2.split('分')[0]
560
+          
561
+        }
562
+        for(let y=0;y<len2.length;y++){
563
+          if(e.target.value == len2[y].value2 ){
564
+            this.RASS_Totalpoints = len2[y].title2.split('分')[0]
549 565
           }
550 566
         }
567
+
551 568
       },
552 569
       radioclick(e,value){
553 570
         console.log('2222',e,value);

+ 55 - 53
src/xt_pages/workforce/appointment.vue Bestand weergeven

@@ -130,53 +130,55 @@
130 130
       </div>
131 131
       <!-- 编辑 -->
132 132
        <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
133
-                        :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
134
-                         title="" @event1="changePartition"
135
-                         @event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
136
-          <div class="position">
137
-            <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
138
-            <div>
139
-              <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
140
-                <el-tab-pane name="beforeWeek">
141
-                  <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
142
-                </el-tab-pane>
143
-                <el-tab-pane name="lastWeek">
144
-                  <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
145
-                </el-tab-pane>
146
-                <el-tab-pane name="thisWeek">
147
-                  <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
148
-                </el-tab-pane>
149
-                <el-tab-pane name="nextWeek">
150
-                  <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
151
-                </el-tab-pane>
152
-                <el-tab-pane name="nextTwoWeek">
153
-                  <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
154
-                </el-tab-pane>
155
-              </el-tabs>
156
-            </div>
157
-            <div style="display:flex;align-items:center">
158
-              <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
159
-              <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
160
-              <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
161
-                导出排班
162
-              </el-button>
163
-              <el-button
164
-                  @click="generateLog()"
165
-                  class="filter-item"
166
-                  type="primary"
167
-                  v-if="is_edit"
168
-                  size="small"
169
-              >下载日志
170
-              </el-button>
171
-              <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
172
-              </el-button>
173
-              <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
174
-              <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
175
-              <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
176
-              <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
133
+          :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
134
+          title="" @event1="changePartition"@event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
135
+          <div  style="position: relative;height: 50px">
136
+            <div style="position: fixed;height: 50px;width: 97%;background: #fff;z-index: 100;padding: 5px;">
137
+              <div style="position: relative;">
138
+                <!-- style="position: fixed;" class="position"-->
139
+                  <div style="display: inline-block;">
140
+                    <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
141
+                      <el-tab-pane name="beforeWeek">
142
+                        <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
143
+                      </el-tab-pane>
144
+                      <el-tab-pane name="lastWeek">
145
+                        <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
146
+                      </el-tab-pane>
147
+                      <el-tab-pane name="thisWeek">
148
+                        <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
149
+                      </el-tab-pane>
150
+                      <el-tab-pane name="nextWeek">
151
+                        <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
152
+                      </el-tab-pane>
153
+                      <el-tab-pane name="nextTwoWeek">
154
+                        <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
155
+                      </el-tab-pane>
156
+                    </el-tabs>
157
+                  </div>
158
+                  <div style="display: inline-block;float: right;">
159
+                    <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
160
+                    <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
161
+                    <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
162
+                      导出排班
163
+                    </el-button>
164
+                    <el-button
165
+                        @click="generateLog()"
166
+                        class="filter-item"
167
+                        type="primary"
168
+                        v-if="is_edit"
169
+                        size="small"
170
+                    >下载日志
171
+                    </el-button>
172
+                    <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
173
+                    </el-button>
174
+                    <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
175
+                    <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
176
+                    <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
177
+                    <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
178
+                  </div>
179
+              </div>
177 180
             </div>
178 181
           </div>
179
-
180 182
         </edit-table-data>
181 183
         <!-- 编辑上上周 -->
182 184
         <beforeweekTable ref="beforeweeks" v-show="beforeshow" :week-time="activeName" :partitions-prop="partitions"
@@ -832,7 +834,7 @@ export default {
832 834
       // this.export_file_step_twos()
833 835
     },
834 836
     export_file_step_two: function(){
835
-     
837
+
836 838
       this.downloadLoading = true
837 839
       import('@/vendor/Export2Excel').then(excel => {
838 840
         const filterVal = [
@@ -873,12 +875,12 @@ export default {
873 875
           })
874 876
 
875 877
           console.log("tablelist",this.tableList)
876
-          
878
+
877 879
 
878 880
           const filename = '排班模版'
879 881
 
880 882
           console.log('333333333',multiHeader),
881
-          
883
+
882 884
           excel.export_json_to_excel({
883 885
 
884 886
             multiHeader,
@@ -3224,7 +3226,7 @@ export default {
3224 3226
                     }
3225 3227
                     else{
3226 3228
                       list[i].shangwu5 = week[j].name+" "+this.getmode(week[j].mode_id)+" "+week[j].dialysis_machine_name
3227
-                     
3229
+
3228 3230
                     }
3229 3231
                   }
3230 3232
                   //周六下午
@@ -3638,7 +3640,7 @@ export default {
3638 3640
                     else{
3639 3641
                       list[i].xiawu14 = lastWeek[j].name+" "+this.getmode(lastWeek[j].mode_id)+" "+lastWeek[j].dialysis_machine_name
3640 3642
                     }
3641
-                   
3643
+
3642 3644
                   }
3643 3645
                   //周一晚上
3644 3646
                   if (lastWeek[j].schedule_week == 1 && lastWeek[j].schedule_type == 3) {
@@ -4707,7 +4709,7 @@ export default {
4707 4709
                       }
4708 4710
                       else{
4709 4711
                         list[i].shangwu5 = week[j].name+" "+this.getmode(week[j].mode_id)+" "+week[j].dialysis_machine_name
4710
-                      
4712
+
4711 4713
                       }
4712 4714
                     }
4713 4715
                     //周六下午
@@ -5051,7 +5053,7 @@ export default {
5051 5053
       //     return this.mode[i].name
5052 5054
       //   }
5053 5055
       // }
5054
-    
5056
+
5055 5057
       var mode_name =""
5056 5058
       for(let i=0;i<this.mode.length;i++){
5057 5059
         if(ids==this.mode[i].id){
@@ -5063,7 +5065,7 @@ export default {
5063 5065
     }
5064 5066
   },
5065 5067
   created() {
5066
-    
5068
+
5067 5069
     this.getlist()
5068 5070
     this.getPatientList()
5069 5071
     var start_time = moment().weekday(1).format('YYYY-MM-DD');

+ 4 - 5
src/xt_pages/workforce/components/editTableData.vue Bestand weergeven

@@ -107,8 +107,8 @@
107 107
       </div>
108 108
       <!-- 右侧 -->
109 109
       <div class="right_contain">
110
-        <div>
111
-          <div>
110
+        <div style="position: relative;height: 50px;">
111
+          <div style="position: fixed; z-index: 100;width: 82%;background: #fff;">
112 112
             <span>日期:</span>
113 113
             <el-select v-model="week_type" style="margin-bottom: 15px;" placeholder="请选择" multiple>
114 114
               <el-option
@@ -120,7 +120,6 @@
120 120
               >
121 121
               </el-option>
122 122
             </el-select>
123
-
124 123
             <span>分区:</span>
125 124
             <!-- 下拉框 -->
126 125
             <el-select
@@ -170,7 +169,7 @@
170 169
             :cell-style ='cellstyle'
171 170
             :row-class-name="tableRowClassName"
172 171
             show-summary
173
-
172
+            
174 173
             ref="table"
175 174
             style="table-layout: fixed;"
176 175
 
@@ -6230,7 +6229,7 @@ textarea{
6230 6229
   overflow: auto;
6231 6230
   margin: 0;
6232 6231
   background: #fff;
6233
-  padding: 20px;
6232
+  padding:0 20px 20px 20px;
6234 6233
   z-index:2000;
6235 6234
   height: 100%;
6236 6235
 }