See999 4 yıl önce
ebeveyn
işleme
2c8ce57dd1

+ 199 - 153
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Dosyayı Görüntüle

@@ -13,9 +13,7 @@
13 13
           @click="openGroupFrom"
14 14
           :loading="deleLoading"
15 15
           :disabled="!is_has_create"
16
-        >
17
-          新增医嘱
18
-        </el-button>
16
+        >新增医嘱</el-button>
19 17
 
20 18
         <el-button
21 19
           v-if="currentRow != null"
@@ -23,16 +21,8 @@
23 21
           :disabled="!is_has_exce"
24 22
           @click="execAdvice"
25 23
           :loading="deleLoading"
26
-          >执行医嘱
27
-        </el-button>
28
-        <el-button
29
-          v-else
30
-          disabled
31
-          round
32
-          @click="execAdvice"
33
-          :loading="deleLoading"
34
-          >执行医嘱</el-button
35
-        >
24
+        >执行医嘱</el-button>
25
+        <el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
36 26
 
37 27
         <el-button
38 28
           v-if="currentRow != null"
@@ -40,16 +30,8 @@
40 30
           :disabled="!is_has_check"
41 31
           @click="checkAdvice"
42 32
           :loading="deleLoading"
43
-          >医嘱核对
44
-        </el-button>
45
-        <el-button
46
-          v-else
47
-          disabled
48
-          round
49
-          @click="checkAdvice"
50
-          :loading="deleLoading"
51
-          >医嘱核对</el-button
52
-        >
33
+        >医嘱核对</el-button>
34
+        <el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
53 35
 
54 36
         <el-button
55 37
           v-if="groupSelectRow != null"
@@ -57,16 +39,8 @@
57 39
           round
58 40
           @click="openEditGroupAdvice"
59 41
           :loading="deleLoading"
60
-          >修改医嘱
61
-        </el-button>
62
-        <el-button
63
-          v-else
64
-          disabled
65
-          round
66
-          @click="openEditGroupAdvice"
67
-          :loading="deleLoading"
68
-          >修改医嘱</el-button
69
-        >
42
+        >修改医嘱</el-button>
43
+        <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
70 44
 
71 45
         <el-button
72 46
           v-if="groupSelectRow != null"
@@ -74,16 +48,8 @@
74 48
           round
75 49
           @click="openDeleteGroupAdvice"
76 50
           :loading="deleLoading"
77
-          >删除医嘱
78
-        </el-button>
79
-        <el-button
80
-          v-else
81
-          disabled
82
-          round
83
-          @click="openDeleteGroupAdvice"
84
-          :loading="deleLoading"
85
-          >删除医嘱</el-button
86
-        >
51
+        >删除医嘱</el-button>
52
+        <el-button v-else disabled round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱</el-button>
87 53
 
88 54
         <!--<el-button round @click="openNewChild" :loading="deleLoading">新增子药</el-button>-->
89 55
       </div>
@@ -104,70 +70,44 @@
104 70
         highlight-current-row
105 71
         @current-change="handleCurrentChange"
106 72
       >
107
-        <el-table-column
108
-          prop="date"
109
-          label="开嘱医生"
110
-          align="center"
111
-          min-width="26px"
112
-        >
73
+        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
113 74
           <template slot-scope="scope">
114 75
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
115 76
           </template>
116 77
         </el-table-column>
117
-        <el-table-column
118
-          prop="start_time"
119
-          label="开始时间"
120
-          align="center"
121
-          min-width="35px"
122
-        >
78
+        <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
123 79
           <template slot-scope="scope">
124
-            <span>{{
80
+            <span>
81
+              {{
125 82
               scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}")
126
-            }}</span>
83
+              }}
84
+            </span>
127 85
           </template>
128 86
         </el-table-column>
129
-        <el-table-column
130
-          prop="advice_name"
131
-          min-width="50px"
132
-          label="医嘱内容"
133
-          align="center"
134
-        >
87
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
135 88
           <template slot-scope="scope">
136 89
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
137
-              <span class="el-dropdown-link"
138
-                >{{ getAdviceContent(scope.row, 1)
139
-                }}<i class="el-icon-arrow-down el-icon--right"></i
140
-              ></span>
90
+              <span class="el-dropdown-link">
91
+                {{ getAdviceContent(scope.row, 1)
92
+                }}
93
+                <i class="el-icon-arrow-down el-icon--right"></i>
94
+              </span>
141 95
               <el-dropdown-menu slot="dropdown">
142
-                <el-dropdown-item
143
-                  @click.native="openEdit(scope.$index, scope.row)"
144
-                  >修改医嘱</el-dropdown-item
145
-                >
146
-                <el-dropdown-item
147
-                  @click.native="openDelete(scope.$index, scope.row)"
148
-                  >删除医嘱</el-dropdown-item
149
-                >
150
-                <el-dropdown-item
151
-                  @click.native="openNewChildTwo(scope.$index, scope.row)"
152
-                  >新增子药</el-dropdown-item
153
-                >
96
+                <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
97
+                <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
98
+                <el-dropdown-item @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
154 99
               </el-dropdown-menu>
155 100
             </el-dropdown>
156 101
 
157 102
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
158
-              <span class="el-dropdown-link"
159
-                >&emsp;{{ getAdviceContent(scope.row, 2)
160
-                }}<i class="el-icon-arrow-down el-icon--right"></i
161
-              ></span>
103
+              <span class="el-dropdown-link">
104
+                &emsp;{{ getAdviceContent(scope.row, 2)
105
+                }}
106
+                <i class="el-icon-arrow-down el-icon--right"></i>
107
+              </span>
162 108
               <el-dropdown-menu slot="dropdown">
163
-                <el-dropdown-item
164
-                  @click.native="openEdit(scope.$index, scope.row)"
165
-                  >修改子药
166
-                </el-dropdown-item>
167
-                <el-dropdown-item
168
-                  @click.native="openDelete(scope.$index, scope.row)"
169
-                  >删除子药
170
-                </el-dropdown-item>
109
+                <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
110
+                <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
171 111
               </el-dropdown-menu>
172 112
             </el-dropdown>
173 113
           </template>
@@ -181,22 +121,21 @@
181 121
           sortable
182 122
         >
183 123
           <template slot-scope="scope">
184
-            <span v-if="scope.row.execution_time != 0">{{
124
+            <span v-if="scope.row.execution_time != 0">
125
+              {{
185 126
               scope.row.start_time | parseTime("{m}-{d} {h}:{i}")
186
-            }}</span>
127
+              }}
128
+            </span>
187 129
             <span v-else></span>
188 130
           </template>
189 131
         </el-table-column>
190
-        <el-table-column
191
-          prop="execution_staff"
192
-          align="center"
193
-          min-width="30px"
194
-          label="执行护士"
195
-        >
132
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
196 133
           <template slot-scope="scope">
197
-            <span v-if="scope.row.parent_id == 0">{{
134
+            <span v-if="scope.row.parent_id == 0">
135
+              {{
198 136
               getXuserName(scope.row.execution_staff)
199
-            }}</span>
137
+              }}
138
+            </span>
200 139
             <span v-else></span>
201 140
           </template>
202 141
         </el-table-column>
@@ -208,22 +147,98 @@
208 147
           label="核对人员"
209 148
         >
210 149
           <template slot-scope="scope">
211
-            <span v-if="scope.row.parent_id == 0">{{
150
+            <span v-if="scope.row.parent_id == 0">
151
+              {{
212 152
               getXuserName(scope.row.checker)
213
-            }}</span>
153
+              }}
154
+            </span>
214 155
             <span v-else></span>
215 156
           </template>
216 157
         </el-table-column>
217 158
       </el-table>
218 159
       <!-- 医嘱列表 end -->
219 160
 
161
+      <!-- 新医嘱列表 -->
162
+      <!-- <div class="orderTable">
163
+        <table class="table">
164
+          <tr @click="cancelAdviceSelect" class="tableTh">
165
+            <th width="8%">开嘱医生</th>
166
+            <th width="12%">开始时间</th>
167
+            <th width="52%">医嘱内容</th>
168
+            <th width="12%">执行时间</th>
169
+            <th width="8%">执行护士</th>
170
+            <th v-if="template_id != 6" width="8%">核对人员</th>
171
+          </tr>
172
+          <template v-for="(group, group_index) in advice_groups">
173
+            <tr
174
+              v-for="(advice, advice_index) in group.advices"
175
+              :key="advice.id"
176
+              :class="{ 'row-class-active': current_group_index == group_index && current_advice_index < 0 }"
177
+            >
178
+              <td
179
+                v-if="advice_index == 0"
180
+                :rowspan="group.advices.length"
181
+                @click="selectGroupAdviceAction(group_index, -1, null,group)"
182
+              >
183
+                <span v-if="advice.parent_id==0">{{getXuserName(advice.advice_doctor)}}</span>
184
+                <span v-else></span>
185
+              </td>
186
+
187
+              <td
188
+                v-if="advice_index == 0"
189
+                :rowspan="group.advices.length"
190
+                @click="selectGroupAdviceAction(group_index, -1, null,group)"
191
+              >
192
+                <span>{{uParseTime(advice.start_time, '{m}-{d} {h}:{i}')}}</span>
193
+              </td>
194
+
195
+              <td
196
+                :class="{ 'advice_content': advice.parent_id == 0, 'subadvice_content': advice.parent_id > 0, 'td-active':current_group_index == group_index  && advice.is_selected == 1 }"
197
+                @click="selectAdviceAction(group_index, advice_index, advice)"
198
+              >
199
+                <div class="txt">
200
+                  <span>{{advice.advice_name }}</span>
201
+                  <span
202
+                    v-if="advice.advice_desc"
203
+                  >({{ advice.advice_desc }}{{advice.drug_spec_unit}})</span>
204
+                  <span
205
+                    v-if="advice.prescribing_number"
206
+                  >&nbsp;&nbsp;{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
207
+                  <span
208
+                    v-if="advice.single_dose && template_id == 6"
209
+                  >{{advice.single_dose}}{{advice.single_dose_unit}}</span>
210
+                  <span
211
+                    v-if="advice.single_dose && template_id != 6"
212
+                  >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
213
+
214
+                  <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
215
+                  <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
216
+                  <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>
217
+                </div>
218
+              </td>
219
+
220
+              <td
221
+                :class="{'td-active':current_group_index == group_index  && advice.is_selected == 1}"
222
+                @click="selectAdviceAction(group_index,advice_index, advice)"
223
+              >{{uParseTime(advice.execution_time, '{m}-{d} {h}:{i}')}}</td>
224
+
225
+              <td
226
+                :class="{'td-active':current_group_index == group_index  && advice.is_selected == 1}"
227
+                @click="selectAdviceAction(group_index,advice_index, advice)"
228
+              >{{getXuserName(advice.execution_staff)}}</td>
229
+              <td
230
+                v-if="template_id != 6"
231
+                :class="{'td-active':current_group_index == group_index  && advice.is_selected == 1}"
232
+                @click="selectAdviceAction(group_index,advice_index, advice)"
233
+              >{{getXuserName(advice.checker)}}</td>
234
+            </tr>
235
+          </template>
236
+        </table>
237
+      </div>-->
238
+      <!-- 新医嘱列表 -->
239
+
220 240
       <!-- 医嘱表单 -->
221
-      <el-form
222
-        ref="form"
223
-        :model="form"
224
-        label-width="100px"
225
-        v-show="showAdviceForm"
226
-      >
241
+      <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
227 242
         <el-row :gutter="20">
228 243
           <!--<el-col :span="8">-->
229 244
           <!--<el-form-item label="医嘱类型:">-->
@@ -258,10 +273,7 @@
258 273
 
259 274
           <el-col :span="8">
260 275
             <el-form-item label="药品规格:">
261
-              <el-input
262
-                v-model="form.advice_desc"
263
-                style="width: 40%;"
264
-              ></el-input>
276
+              <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
265 277
               <el-select
266 278
                 v-model="form.drug_spec_unit"
267 279
                 style="width: 56%;"
@@ -273,8 +285,7 @@
273 285
                   :key="item.id"
274 286
                   :label="item.name"
275 287
                   :value="item.name"
276
-                >
277
-                </el-option>
288
+                ></el-option>
278 289
               </el-select>
279 290
             </el-form-item>
280 291
           </el-col>
@@ -283,10 +294,7 @@
283 294
         <el-row :gutter="20">
284 295
           <el-col :span="8">
285 296
             <el-form-item label="开药数量:">
286
-              <el-input
287
-                v-model="form.prescribing_number"
288
-                style="width: 40%;"
289
-              ></el-input>
297
+              <el-input v-model="form.prescribing_number" style="width: 40%;"></el-input>
290 298
               <el-select
291 299
                 v-model="form.prescribing_number_unit"
292 300
                 style="width: 56%;"
@@ -298,8 +306,7 @@
298 306
                   :key="item.id"
299 307
                   :label="item.name"
300 308
                   :value="item.name"
301
-                >
302
-                </el-option>
309
+                ></el-option>
303 310
               </el-select>
304 311
               <!-- <el-input v-model="form.prescribing_number_unit" style="width: 40%;"></el-input> -->
305 312
             </el-form-item>
@@ -307,10 +314,7 @@
307 314
 
308 315
           <el-col :span="8">
309 316
             <el-form-item label="单次用量:">
310
-              <el-input
311
-                v-model="form.single_dose"
312
-                style="width: 40%;"
313
-              ></el-input>
317
+              <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
314 318
               <el-select
315 319
                 v-model="form.single_dose_unit"
316 320
                 style="width: 56%;"
@@ -322,8 +326,7 @@
322 326
                   :key="item.id"
323 327
                   :label="item.name"
324 328
                   :value="item.name"
325
-                >
326
-                </el-option>
329
+                ></el-option>
327 330
               </el-select>
328 331
 
329 332
               <!-- <el-input v-model="form.single_dose_unit" style="width: 40%;"></el-input> -->
@@ -343,8 +346,7 @@
343 346
                   :key="item.id"
344 347
                   :label="item.name"
345 348
                   :value="item.name"
346
-                >
347
-                </el-option>
349
+                ></el-option>
348 350
               </el-select>
349 351
             </el-form-item>
350 352
           </el-col>
@@ -364,8 +366,7 @@
364 366
                   :key="item.id"
365 367
                   :label="item.name"
366 368
                   :value="item.name"
367
-                >
368
-                </el-option>
369
+                ></el-option>
369 370
               </el-select>
370 371
             </el-form-item>
371 372
           </el-col>
@@ -373,20 +374,8 @@
373 374
       </el-form>
374 375
       <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
375 376
         <el-button @click="hideForm">取 消</el-button>
376
-        <el-button
377
-          type="primary"
378
-          v-if="form.id == 0"
379
-          @click="submitAdvice"
380
-          :loading="loading"
381
-          >保 存</el-button
382
-        >
383
-        <el-button
384
-          type="primary"
385
-          v-else
386
-          @click="submitEditAdvice"
387
-          :loading="loading"
388
-          >保 存</el-button
389
-        >
377
+        <el-button type="primary" v-if="form.id == 0" @click="submitAdvice" :loading="loading">保 存</el-button>
378
+        <el-button type="primary" v-else @click="submitEditAdvice" :loading="loading">保 存</el-button>
390 379
       </div>
391 380
       <!-- 医嘱表单 end -->
392 381
     </el-dialog>
@@ -407,15 +396,10 @@
407 396
         type="datetime"
408 397
         placeholder="选择执行时间"
409 398
         style="width:100%"
410
-      >
411
-      </el-date-picker>
399
+      ></el-date-picker>
412 400
       <span slot="footer" class="dialog-footer">
413
-        <el-button @click="closeTimePanel" :loading="exceLoading"
414
-          >取 消</el-button
415
-        >
416
-        <el-button type="primary" @click="submitExce" :loading="exceLoading"
417
-          >保 存</el-button
418
-        >
401
+        <el-button @click="closeTimePanel" :loading="exceLoading">取 消</el-button>
402
+        <el-button type="primary" @click="submitExce" :loading="exceLoading">保 存</el-button>
419 403
       </span>
420 404
     </el-dialog>
421 405
 
@@ -1877,6 +1861,68 @@ export default {
1877 1861
 }
1878 1862
 </style>
1879 1863
 
1864
+<style lang="scss" scoped>
1865
+.table {
1866
+  width: 100%;
1867
+  .tableTh {
1868
+    th {
1869
+      padding: 10px 0px;
1870
+      background-color: rgb(245, 247, 250);
1871
+      color: #909399;
1872
+      font-weight: bold;
1873
+      text-align: center;
1874
+    }
1875
+  }
1876
+  tr {
1877
+    // th {
1878
+    //   background: $main-color;
1879
+    //   color: #fff;
1880
+    //   height: 1.2rem;
1881
+    //   line-height: 1.2rem;
1882
+    // }
1883
+    td {
1884
+      line-height: 0.6rem;
1885
+      .txt {
1886
+        // float: left;
1887
+        padding: 0 10px 0 10px;
1888
+        // width: 75%;
1889
+        text-align: left;
1890
+      }
1891
+      .ico {
1892
+        float: right;
1893
+        width: 60px;
1894
+        text-align: right;
1895
+        padding-right: 3px;
1896
+      }
1897
+      .iconfont {
1898
+        font-size: 20px;
1899
+        padding: 0 2px;
1900
+        color: #7b8a97;
1901
+      }
1902
+      .handle {
1903
+        color: #409eff;
1904
+        // padding: 0 7px;
1905
+      }
1906
+    }
1907
+    .advice_content {
1908
+      // background: #eff6fc;
1909
+    }
1910
+    .subadvice_content {
1911
+      // background: #fafcfe;
1912
+      padding-left: 20px;
1913
+    }
1914
+    .td-active {
1915
+      background: #badcff !important;
1916
+    }
1917
+  }
1918
+  .row-class-active {
1919
+    td {
1920
+      background: #badcff;
1921
+    }
1922
+  }
1923
+}
1924
+</style>
1925
+
1880 1926
 <!--<style scoped>-->
1881 1927
 
1882 1928
 <!--.txsj{-->

Dosya farkı çok büyük olduğundan ihmal edildi
+ 129 - 641
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 249 - 1172
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 500 - 1169
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 88 - 575
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 316 - 1741
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue