Parcourir la source

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

28169 il y a 1 an
Parent
révision
86de856c9f
1 fichiers modifiés avec 132 ajouts et 126 suppressions
  1. 132 126
      src/xt_pages/workforce/components/editTableData.vue

+ 132 - 126
src/xt_pages/workforce/components/editTableData.vue Voir le fichier

@@ -6,140 +6,146 @@
6 6
     <div class="table_contain">
7 7
       <!-- 左侧 -->
8 8
       <div class="left_contain">
9
-        <div class="cell clearfix"
10
-            v-if="
11
-            weekTime == 'thisWeek' ||
12
-            weekTime == 'nextWeek' ||
13
-            weekTime == 'nextTwoWeek'
14
-          ">
15
-          <el-input
16
-              size="small"
17
-              style="width: 160px"
18
-              class="filter-item"
19
-              v-model.trim="keywords"
20
-              placeholder="病人名称/透析号"
21
-              @keyup.enter.native="search"
22
-          />
23
-          <el-button
24
-              size="small"
25
-              class="filter-item"
26
-              type="primary"
27
-              icon="el-icon-search"
28
-              @click="search"
29
-          >搜索</el-button>
9
+        <div style="position: fixed;width: 13%;">
10
+          <div class="cell clearfix"
11
+              v-if="
12
+              weekTime == 'thisWeek' ||
13
+              weekTime == 'nextWeek' ||
14
+              weekTime == 'nextTwoWeek'
15
+            ">
16
+            <el-input
17
+                size="small"
18
+                style="width: 160px"
19
+                class="filter-item"
20
+                v-model.trim="keywords"
21
+                placeholder="病人名称/透析号"
22
+                @keyup.enter.native="search"
23
+            />
24
+            <el-button
25
+                size="small"
26
+                class="filter-item"
27
+                type="primary"
28
+                icon="el-icon-search"
29
+                @click="search"
30
+            >搜索</el-button>
30 31
 
31
-        </div>
32
-        <div style="margin-bottom: 10px; display: flex">
33
-          <h3 style="line-height: 45px">
34
-            <span
35
-                style="margin-right: 10px; font-size: 16px; white-space: nowrap"
36
-            >当前选择</span
37
-            >
38
-          </h3>
39
-          <div style="line-height: 30px">
40
-            <!-- 拖拽dragstart -->
41
-            <div
42
-                draggable="true"
43
-                class="item_touz"
44
-                style="font-weight: bolder"
45
-                @dragstart="curInfoDragStart()"
46
-            >
47
-              <span>{{ cur_info.patient_name }}</span>
48
-              &nbsp;
49
-              <span>{{ cur_info.mode_name }}</span>
32
+          </div>
33
+          <div style="margin-bottom: 10px; display: flex">
34
+            <h3 style="line-height: 45px">
35
+              <span
36
+                  style="margin-right: 10px; font-size: 16px; white-space: nowrap"
37
+              >当前选择</span
38
+              >
39
+            </h3>
40
+            <div style="line-height: 30px">
41
+              <!-- 拖拽dragstart -->
42
+              <div
43
+                  draggable="true"
44
+                  class="item_touz"
45
+                  style="font-weight: bolder"
46
+                  @dragstart="curInfoDragStart()"
47
+              >
48
+                <span>{{ cur_info.patient_name }}</span>
49
+                &nbsp;
50
+                <span>{{ cur_info.mode_name }}</span>
51
+              </div>
50 52
             </div>
51 53
           </div>
52
-        </div>
53
-        <div class="patient_mode">
54
-          <el-table
55
-              :row-style="{ color: '#303133' }"
56
-              :header-cell-style="{
57
-                backgroundColor: 'rgb(245, 247, 250)',
58
-                color: '#606266',
59
-              }"
60
-              :data="patientList"
61
-              height='600'
62
-              border
63
-              @row-click="patientClick"
64
-              :cell-class-name="patientClass"
65
-              ref="patient_table"
66
-              style="width: 100%; margin-right: 14px ;"
67
-          >
68
-            <el-table-column
69
-                label="患者名称"
70
-                align="center"
54
+          <div class="patient_mode">
55
+            <el-table
56
+                :row-style="{ color: '#303133' }"
57
+                :header-cell-style="{
58
+                  backgroundColor: 'rgb(245, 247, 250)',
59
+                  color: '#606266',
60
+                }"
61
+                :data="patientList"
62
+                height='600'
63
+                border
64
+                @row-click="patientClick"
65
+                :cell-class-name="patientClass"
66
+                ref="patient_table"
67
+                style="width: 100%; margin-right: 14px ;"
71 68
             >
72
-             <template slot-scope="scope">
73
-                <span v-if="scope.row.is_infectious == 2" style="color: red;">{{scope.row.name  }}</span>
74
-                <span v-if="scope.row.is_infectious != 2" >
75
-                  {{scope.row.name  }}
76
-                </span>
77
-                <!-- <span class="touxi_cishu"  @click="chishuclick(scope.row.name)">
78
-                  0/4
79
-                </span> -->
80
-             </template>
81
-            </el-table-column>
82
-          </el-table>
83
-
84
-          <el-table
85
-              :row-style="{ color: '#303133' }"
86
-              :header-cell-style="{
87
-                backgroundColor: 'rgb(245, 247, 250)',
88
-                color: '#606266',
89
-              }"
90
-              :data="modes"
91
-              height="600"
92
-              :cell-class-name="dialysis_patient"
93
-              ref="mode_table"
94
-              @row-click="modeClick"
95
-              border
96
-              style="width: 100%;"
97
-          >
98
-            <el-table-column
99
-                prop="name"
100
-                label="透析模式"
101
-                align="center"
102
-            ></el-table-column>
103
-          </el-table>
69
+              <el-table-column
70
+                  label="患者名称"
71
+                  align="center"
72
+              >
73
+              <template slot-scope="scope">
74
+                  <span v-if="scope.row.is_infectious == 2" style="color: red;">{{scope.row.name  }}</span>
75
+                  <span v-if="scope.row.is_infectious != 2" >
76
+                    {{scope.row.name  }}
77
+                  </span>
78
+                  <!-- <span class="touxi_cishu"  @click="chishuclick(scope.row.name)">
79
+                    0/4
80
+                  </span> -->
81
+              </template>
82
+              </el-table-column>
83
+            </el-table>
84
+
85
+            <el-table
86
+                :row-style="{ color: '#303133' }"
87
+                :header-cell-style="{
88
+                  backgroundColor: 'rgb(245, 247, 250)',
89
+                  color: '#606266',
90
+                }"
91
+                :data="modes"
92
+                height="600"
93
+                :cell-class-name="dialysis_patient"
94
+                ref="mode_table"
95
+                @row-click="modeClick"
96
+                border
97
+                style="width: 100%;"
98
+            >
99
+              <el-table-column
100
+                  prop="name"
101
+                  label="透析模式"
102
+                  align="center"
103
+              ></el-table-column>
104
+            </el-table>
105
+          </div>
104 106
         </div>
105 107
       </div>
106 108
       <!-- 右侧 -->
107 109
       <div class="right_contain">
108
-        <span>日期:</span>
109
-        <el-select v-model="week_type" style="margin-bottom: 15px;" placeholder="请选择" multiple>
110
-          <el-option
111
-              @change="changeWeekDay"
112
-              v-for="(item, index) in week_zhongwens"
113
-              :key="index"
114
-              :label="item"
115
-              :value="item"
116
-          >
117
-          </el-option>
118
-        </el-select>
110
+        <div>
111
+          <div>
112
+            <span>日期:</span>
113
+            <el-select v-model="week_type" style="margin-bottom: 15px;" placeholder="请选择" multiple>
114
+              <el-option
115
+                  @change="changeWeekDay"
116
+                  v-for="(item, index) in week_zhongwens"
117
+                  :key="index"
118
+                  :label="item"
119
+                  :value="item"
120
+              >
121
+              </el-option>
122
+            </el-select>
119 123
 
120
-        <span>分区:</span>
121
-        <!-- 下拉框 -->
122
-        <el-select
123
-            v-model="partition_id"
124
-            multiple
125
-            placeholder="请选择"
126
-            @change="changePartiton"
127
-        >
128
-          <el-option
129
-              v-for="item in this.zones"
130
-              :key="item.id"
131
-              :label="item.name"
132
-              :value="item.id"
133
-          >
134
-          </el-option>
135
-        </el-select>
136
-        <!-- 显示透析模式开关 -->
137
-        <el-switch
138
-          v-model="modename_value"
139
-          :active-value=true
140
-          active-text="显示透析模式"
141
-          @change="switchMode(modename_value)">
142
-        </el-switch>
124
+            <span>分区:</span>
125
+            <!-- 下拉框 -->
126
+            <el-select
127
+                v-model="partition_id"
128
+                multiple
129
+                placeholder="请选择"
130
+                @change="changePartiton"
131
+            >
132
+              <el-option
133
+                  v-for="item in this.zones"
134
+                  :key="item.id"
135
+                  :label="item.name"
136
+                  :value="item.id"
137
+              >
138
+              </el-option>
139
+            </el-select>
140
+            <!-- 显示透析模式开关 -->
141
+            <el-switch
142
+              v-model="modename_value"
143
+              :active-value=true
144
+              active-text="显示透析模式"
145
+              @change="switchMode(modename_value)">
146
+            </el-switch>
147
+          </div>
148
+        </div>
143 149
         <!-- 编辑排班表格 -->
144 150
           <el-table id="eltable"
145 151
             :row-style="{ color: '#303133' }"
@@ -164,7 +170,7 @@
164 170
             :cell-style ='cellstyle'
165 171
             :row-class-name="tableRowClassName"
166 172
             show-summary
167
-            
173
+
168 174
             ref="table"
169 175
             style="table-layout: fixed;"
170 176