|
@@ -11,6 +11,7 @@
|
11
|
11
|
<div class="txsj">
|
12
|
12
|
<el-button
|
13
|
13
|
round
|
|
14
|
+
|
14
|
15
|
@click="openLast(3)"
|
15
|
16
|
>上一方
|
16
|
17
|
</el-button>
|
|
@@ -161,12 +162,14 @@
|
161
|
162
|
<div class="txsj">
|
162
|
163
|
<el-button
|
163
|
164
|
round
|
|
165
|
+ v-if="his_is_open != 1"
|
164
|
166
|
@click="openLast(1)"
|
165
|
167
|
>上一方
|
166
|
168
|
</el-button>
|
167
|
169
|
|
168
|
170
|
<el-button
|
169
|
171
|
round
|
|
172
|
+ v-if="his_is_open != 1"
|
170
|
173
|
@click="openNext(2)"
|
171
|
174
|
>下一方
|
172
|
175
|
</el-button>
|
|
@@ -177,6 +180,7 @@
|
177
|
180
|
round
|
178
|
181
|
@click="openGroupFrom"
|
179
|
182
|
:loading="deleLoading"
|
|
183
|
+ v-if="his_is_open != 1"
|
180
|
184
|
:disabled="!is_has_create"
|
181
|
185
|
>新增医嘱
|
182
|
186
|
</el-button>
|
|
@@ -187,6 +191,7 @@
|
187
|
191
|
:disabled="!is_has_exce"
|
188
|
192
|
@click="execAdvice"
|
189
|
193
|
:loading="deleLoading"
|
|
194
|
+
|
190
|
195
|
>执行医嘱
|
191
|
196
|
</el-button>
|
192
|
197
|
<el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
|
|
@@ -202,7 +207,8 @@
|
202
|
207
|
<el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
|
203
|
208
|
|
204
|
209
|
<el-button
|
205
|
|
- v-if="groupSelectRow != null"
|
|
210
|
+
|
|
211
|
+ v-if="groupSelectRow != null || his_is_open != 1"
|
206
|
212
|
:disabled="!is_has_modify && !is_has_modify_other"
|
207
|
213
|
round
|
208
|
214
|
@click="openEditGroupAdvice"
|
|
@@ -212,7 +218,7 @@
|
212
|
218
|
<el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
|
213
|
219
|
|
214
|
220
|
<el-button
|
215
|
|
- v-if="groupSelectRow != null"
|
|
221
|
+ v-if="groupSelectRow != null || his_is_open != 1"
|
216
|
222
|
:disabled="!is_has_del && !is_has_del_other"
|
217
|
223
|
round
|
218
|
224
|
@click="openDeleteGroupAdvice"
|
|
@@ -227,6 +233,7 @@
|
227
|
233
|
<!-- @row-click="cellMouseEnter" -->
|
228
|
234
|
<!--<!–:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"–>@current-change="selectRow"-->
|
229
|
235
|
<el-table
|
|
236
|
+ v-if="his_is_open == 0"
|
230
|
237
|
:header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
|
231
|
238
|
:data="doctor_advices"
|
232
|
239
|
border
|
|
@@ -260,9 +267,9 @@
|
260
|
267
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
261
|
268
|
</span>
|
262
|
269
|
<el-dropdown-menu slot="dropdown">
|
263
|
|
- <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
|
264
|
|
- <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
|
265
|
|
- <el-dropdown-item @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
|
|
270
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
|
|
271
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
|
|
272
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
|
266
|
273
|
</el-dropdown-menu>
|
267
|
274
|
</el-dropdown>
|
268
|
275
|
|
|
@@ -272,8 +279,8 @@
|
272
|
279
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
273
|
280
|
</span>
|
274
|
281
|
<el-dropdown-menu slot="dropdown">
|
275
|
|
- <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
|
276
|
|
- <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
|
|
282
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
|
|
283
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
|
277
|
284
|
</el-dropdown-menu>
|
278
|
285
|
</el-dropdown>
|
279
|
286
|
</template>
|
|
@@ -316,6 +323,97 @@
|
316
|
323
|
</template>
|
317
|
324
|
</el-table-column>
|
318
|
325
|
</el-table>
|
|
326
|
+ <el-table
|
|
327
|
+ v-else
|
|
328
|
+ :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
|
|
329
|
+ :data="doctor_advices"
|
|
330
|
+ border
|
|
331
|
+ style="width: 100%"
|
|
332
|
+ v-show="showAdvicePanel"
|
|
333
|
+ ref="advices_list"
|
|
334
|
+ @row-click="cellMouseEnter"
|
|
335
|
+ :row-class-name="tableRowClassName"
|
|
336
|
+ :cell-class-name="adviceNameShow"
|
|
337
|
+ :modal-append-to-body="false"
|
|
338
|
+ highlight-current-row
|
|
339
|
+ >
|
|
340
|
+ <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
|
|
341
|
+ <template slot-scope="scope">
|
|
342
|
+ <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
|
|
343
|
+ </template>
|
|
344
|
+ </el-table-column>
|
|
345
|
+ <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
|
|
346
|
+ <template slot-scope="scope">
|
|
347
|
+ <span>
|
|
348
|
+ {{scope.row.start_time | parseTime('{y}-{m}-{d} {h}:{i}')}}
|
|
349
|
+ </span>
|
|
350
|
+ </template>
|
|
351
|
+ </el-table-column>
|
|
352
|
+ <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
|
|
353
|
+ <template slot-scope="scope">
|
|
354
|
+ <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
|
|
355
|
+ <span class="el-dropdown-link">
|
|
356
|
+ {{ getAdviceContent(scope.row, 1)}}
|
|
357
|
+ <i class="el-icon-arrow-down el-icon--right"></i>
|
|
358
|
+ </span>
|
|
359
|
+ <el-dropdown-menu slot="dropdown">
|
|
360
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
|
|
361
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
|
|
362
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
|
|
363
|
+ </el-dropdown-menu>
|
|
364
|
+ </el-dropdown>
|
|
365
|
+
|
|
366
|
+ <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
|
|
367
|
+ <span class="el-dropdown-link">
|
|
368
|
+  {{ getAdviceContent(scope.row, 2)}}
|
|
369
|
+ <i class="el-icon-arrow-down el-icon--right"></i>
|
|
370
|
+ </span>
|
|
371
|
+ <el-dropdown-menu slot="dropdown">
|
|
372
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
|
|
373
|
+ <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
|
|
374
|
+ </el-dropdown-menu>
|
|
375
|
+ </el-dropdown>
|
|
376
|
+ </template>
|
|
377
|
+ </el-table-column>
|
|
378
|
+
|
|
379
|
+ <el-table-column
|
|
380
|
+ prop="execution_time"
|
|
381
|
+ align="center"
|
|
382
|
+ min-width="30px"
|
|
383
|
+ label="执行时间"
|
|
384
|
+ sortable
|
|
385
|
+ >
|
|
386
|
+ <template slot-scope="scope">
|
|
387
|
+ <span v-if="scope.row.execution_time != 0">
|
|
388
|
+ {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
|
|
389
|
+ </span>
|
|
390
|
+ <span v-else></span>
|
|
391
|
+ </template>
|
|
392
|
+ </el-table-column>
|
|
393
|
+ <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
|
|
394
|
+ <template slot-scope="scope">
|
|
395
|
+ <span v-if="scope.row.parent_id == 0">
|
|
396
|
+ {{getXuserName(scope.row.execution_staff)}}
|
|
397
|
+ </span>
|
|
398
|
+ <span v-else></span>
|
|
399
|
+ </template>
|
|
400
|
+ </el-table-column>
|
|
401
|
+ <el-table-column
|
|
402
|
+ v-if="template_id != 6"
|
|
403
|
+ prop="checker"
|
|
404
|
+ min-width="30px"
|
|
405
|
+ align="center"
|
|
406
|
+ label="核对人员"
|
|
407
|
+ >
|
|
408
|
+ <template slot-scope="scope">
|
|
409
|
+ <span v-if="scope.row.parent_id == 0">
|
|
410
|
+ {{getXuserName(scope.row.checker)}}
|
|
411
|
+ </span>
|
|
412
|
+ <span v-else></span>
|
|
413
|
+ </template>
|
|
414
|
+ </el-table-column>
|
|
415
|
+ </el-table>
|
|
416
|
+
|
319
|
417
|
<!-- 医嘱列表 end -->
|
320
|
418
|
|
321
|
419
|
<!-- 新医嘱列表 -->
|
|
@@ -432,7 +530,7 @@
|
432
|
530
|
</el-col>
|
433
|
531
|
|
434
|
532
|
<el-col :span="8">
|
435
|
|
- <el-form-item label="药品规格:">
|
|
533
|
+ <el-form-item label="药品规格:">
|
436
|
534
|
<el-autocomplete
|
437
|
535
|
style="width:100px;"
|
438
|
536
|
class="inline-input"
|
|
@@ -441,7 +539,7 @@
|
441
|
539
|
placeholder="请输入内容"
|
442
|
540
|
@input="changeDrugDesc"
|
443
|
541
|
></el-autocomplete>
|
444
|
|
-
|
|
542
|
+
|
445
|
543
|
<el-select
|
446
|
544
|
v-model="form.drug_spec_unit"
|
447
|
545
|
style="width: 100px;"
|
|
@@ -681,7 +779,7 @@
|
681
|
779
|
current_group_index: -1,
|
682
|
780
|
title: '临时医嘱',
|
683
|
781
|
add_title: '新增医嘱',
|
684
|
|
-
|
|
782
|
+ his_is_open:0,
|
685
|
783
|
showAdviceForm: false,
|
686
|
784
|
showAdvicePanel: true,
|
687
|
785
|
showNameForm: false,
|
|
@@ -772,9 +870,9 @@
|
772
|
870
|
this.form['dialysis_order_id'] = this.dialysis_order.id
|
773
|
871
|
},
|
774
|
872
|
doctor_advices: function() {
|
775
|
|
- this.handleSpanTempArr()
|
776
|
|
- this.hoverOrderArr = []
|
777
|
|
- this.handleStyle()
|
|
873
|
+ // this.handleSpanTempArr()
|
|
874
|
+ // this.hoverOrderArr = []
|
|
875
|
+ // this.handleStyle()
|
778
|
876
|
}
|
779
|
877
|
},
|
780
|
878
|
methods: {
|
|
@@ -849,7 +947,7 @@
|
849
|
947
|
remark: ''
|
850
|
948
|
}
|
851
|
949
|
console.log("2223333",submitForm)
|
852
|
|
-
|
|
950
|
+
|
853
|
951
|
let mode = '1'
|
854
|
952
|
CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
|
855
|
953
|
response => {
|
|
@@ -1178,7 +1276,7 @@
|
1178
|
1276
|
}
|
1179
|
1277
|
,
|
1180
|
1278
|
submitExce() {
|
1181
|
|
-
|
|
1279
|
+ console.log(this.currentRow.origin)
|
1182
|
1280
|
if (this.currentRow == null) {
|
1183
|
1281
|
this.$message.error('请先选择要执行的医嘱!')
|
1184
|
1282
|
return false
|
|
@@ -1195,10 +1293,9 @@
|
1195
|
1293
|
}
|
1196
|
1294
|
this.exceLoading = true
|
1197
|
1295
|
let mode = '6'
|
1198
|
|
-
|
1199
|
|
- console.log("222222",this.currentRow.id)
|
1200
|
|
-
|
1201
|
|
- ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode).then(response => {
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+ ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode,this.currentRow.origin).then(response => {
|
1202
|
1299
|
if (response.data.state == 0) {
|
1203
|
1300
|
this.$message.error(response.data.msg)
|
1204
|
1301
|
this.exceLoading = false
|
|
@@ -1262,7 +1359,7 @@
|
1262
|
1359
|
return false
|
1263
|
1360
|
}
|
1264
|
1361
|
let mode = '1'
|
1265
|
|
-
|
|
1362
|
+
|
1266
|
1363
|
if(this.src_type == ""){
|
1267
|
1364
|
this.form.way = 0
|
1268
|
1365
|
this.form.drug_id = 0
|
|
@@ -1275,7 +1372,7 @@
|
1275
|
1372
|
}
|
1276
|
1373
|
|
1277
|
1374
|
console.log("新增医嘱子药",this.form)
|
1278
|
|
-
|
|
1375
|
+
|
1279
|
1376
|
CreateDoctorAdvice(this.patient.id, this.form, mode)
|
1280
|
1377
|
.then(response => {
|
1281
|
1378
|
this.loading = false
|
|
@@ -1501,6 +1598,7 @@
|
1501
|
1598
|
}
|
1502
|
1599
|
,
|
1503
|
1600
|
checkAdvice() {
|
|
1601
|
+ console.log(this.currentRow)
|
1504
|
1602
|
// console.log(this.$store.getters.xt_user)
|
1505
|
1603
|
if (this.currentRow == null) {
|
1506
|
1604
|
this.$message.error('请先选择要核对的医嘱!')
|
|
@@ -1530,7 +1628,7 @@
|
1530
|
1628
|
this.deleLoading = true
|
1531
|
1629
|
let mode = '7'
|
1532
|
1630
|
|
1533
|
|
- CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode).then(
|
|
1631
|
+ CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode,this.currentRow.origin).then(
|
1534
|
1632
|
response => {
|
1535
|
1633
|
if (response.data.state == 0) {
|
1536
|
1634
|
this.$message.error(response.data.msg)
|
|
@@ -1583,7 +1681,7 @@
|
1583
|
1681
|
}
|
1584
|
1682
|
,
|
1585
|
1683
|
execAdvice() {
|
1586
|
|
-
|
|
1684
|
+
|
1587
|
1685
|
if (this.is_has_exce == false) {
|
1588
|
1686
|
this.$message.error('你没有执行医嘱的权限')
|
1589
|
1687
|
return false
|
|
@@ -1724,7 +1822,7 @@
|
1724
|
1822
|
})
|
1725
|
1823
|
.catch(() => {
|
1726
|
1824
|
})
|
1727
|
|
- this.handleSpanTempArr()
|
|
1825
|
+ // this.handleSpanTempArr()
|
1728
|
1826
|
}
|
1729
|
1827
|
,
|
1730
|
1828
|
openDelete(index, row) {
|
|
@@ -1902,8 +2000,8 @@
|
1902
|
2000
|
}
|
1903
|
2001
|
})
|
1904
|
2002
|
|
1905
|
|
- this.handleSpanTempArr()
|
1906
|
|
- this.handleStyle()
|
|
2003
|
+ // this.handleSpanTempArr()
|
|
2004
|
+ // this.handleStyle()
|
1907
|
2005
|
}
|
1908
|
2006
|
,
|
1909
|
2007
|
getXuserName(id) {
|
|
@@ -1934,7 +2032,9 @@
|
1934
|
2032
|
this.$refs.addGroupForm.open()
|
1935
|
2033
|
}
|
1936
|
2034
|
,
|
1937
|
|
- show() {
|
|
2035
|
+ show(his_is_open) {
|
|
2036
|
+ this.his_is_open = his_is_open
|
|
2037
|
+ console.log(this.his_is_open)
|
1938
|
2038
|
this.isVisibility = true
|
1939
|
2039
|
this.getPermission()
|
1940
|
2040
|
}
|
|
@@ -2025,8 +2125,8 @@
|
2025
|
2125
|
} else {
|
2026
|
2126
|
// 判断当前元素与上一个元素是否相同
|
2027
|
2127
|
if (
|
2028
|
|
- this.doctor_advices[i].groupno ===
|
2029
|
|
- this.doctor_advices[i - 1].groupno
|
|
2128
|
+ this.doctor_advices[i].created_time ===
|
|
2129
|
+ this.doctor_advices[i - 1].created_time
|
2030
|
2130
|
) {
|
2031
|
2131
|
this.tempArr[this.pos] += 1
|
2032
|
2132
|
this.tempArr.push(0)
|
|
@@ -2036,8 +2136,7 @@
|
2036
|
2136
|
}
|
2037
|
2137
|
}
|
2038
|
2138
|
}
|
2039
|
|
- }
|
2040
|
|
- ,
|
|
2139
|
+ },
|
2041
|
2140
|
cellMouseEnter: function(row, column, event) {
|
2042
|
2141
|
console.log("数据是",row)
|
2043
|
2142
|
this.currentRow = row
|
|
@@ -2062,7 +2161,7 @@
|
2062
|
2161
|
if (index === 0) {
|
2063
|
2162
|
sameRowArr.push([index])
|
2064
|
2163
|
} else {
|
2065
|
|
- if (item.groupno === this.doctor_advices[index - 1].groupno) {
|
|
2164
|
+ if (item.created_time === this.doctor_advices[index - 1].created_time) {
|
2066
|
2165
|
sameRowArr[sIdx].push(index)
|
2067
|
2166
|
} else {
|
2068
|
2167
|
sIdx = sIdx + 1
|
|
@@ -2175,7 +2274,7 @@
|
2175
|
2274
|
// });
|
2176
|
2275
|
},
|
2177
|
2276
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
2178
|
|
-
|
|
2277
|
+
|
2179
|
2278
|
if (columnIndex === 0) {
|
2180
|
2279
|
if (rowIndex % 2 === 0) {
|
2181
|
2280
|
return {
|
|
@@ -2211,7 +2310,7 @@
|
2211
|
2310
|
|
2212
|
2311
|
var doctor_advices = response.data.data.advices
|
2213
|
2312
|
console.log("doctor_advices",doctor_advices)
|
2214
|
|
-
|
|
2313
|
+
|
2215
|
2314
|
this.other_doctor_advices = doctor_advices
|
2216
|
2315
|
this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
|
2217
|
2316
|
this.sch = response.data.data.schedule
|
|
@@ -2405,7 +2504,7 @@
|
2405
|
2504
|
}else{
|
2406
|
2505
|
this.form.drug_name_id = 0
|
2407
|
2506
|
}
|
2408
|
|
-
|
|
2507
|
+
|
2409
|
2508
|
}
|
2410
|
2509
|
}
|
2411
|
2510
|
},
|
|
@@ -2460,6 +2559,12 @@
|
2460
|
2559
|
this.getDialysisScheduleDetail()
|
2461
|
2560
|
//获取自备药
|
2462
|
2561
|
this.getSelfMedicalList()
|
|
2562
|
+ },mounted(){
|
|
2563
|
+ console.log("~~~~~")
|
|
2564
|
+ console.log(this.his_is_open)
|
|
2565
|
+ console.log("~~~~~")
|
|
2566
|
+
|
|
2567
|
+
|
2463
|
2568
|
},
|
2464
|
2569
|
components: {
|
2465
|
2570
|
AddGroupAdvice,
|