|
|
@@ -7,12 +7,14 @@
|
|
|
</div>
|
|
|
<div class="ribbon">
|
|
|
<button @click="qingKong" title="清空工作台">清空工作台</button>
|
|
|
+ <el-divider direction="vertical"/>
|
|
|
<button @click="toAddAnOrder" title="录入医嘱">录入医嘱</button>
|
|
|
<el-divider direction="vertical"/>
|
|
|
<button @click="copyClick" title="复制当前工作台的医嘱,并粘贴到工作台中">复制</button>
|
|
|
<button @click="pasteClick" :disabled="copyOrderNo.actOrderNo === null"
|
|
|
title="复制当前工作台的医嘱,并粘贴到工作台中">粘贴
|
|
|
</button>
|
|
|
+ <el-divider direction="vertical"/>
|
|
|
<button @click="duplicateAndPaste" title="复制当前工作台的医嘱,并粘贴到工作台中">复制并粘贴</button>
|
|
|
<el-divider direction="vertical"/>
|
|
|
<button @click="openTheOrderPopUpWindow" title="打开医嘱弹窗,如转科,抗菌药物信息,处置医嘱等">打开医嘱弹窗
|
|
|
@@ -843,15 +845,19 @@ const copyClick = () => {
|
|
|
if (stringIsBlank(yiZhuData.value.actOrderNo) || yiZhuData.value.actOrderNo === 'tempOrderNo') {
|
|
|
BizException(ExceptionEnum.MESSAGE_ERROR, '请先选择医嘱')
|
|
|
}
|
|
|
- copyOrderNo.actOrderNo = yiZhuData.value.actOrderNo
|
|
|
- copyOrderNo.frequCode = yiZhuData.value.frequCode
|
|
|
+ copy(yiZhuData.value.actOrderNo, yiZhuData.value.frequCode)
|
|
|
+}
|
|
|
+
|
|
|
+const copy = (actOrderNo, frequCode) => {
|
|
|
+ copyOrderNo.actOrderNo = actOrderNo
|
|
|
+ copyOrderNo.frequCode = frequCode
|
|
|
xcMessage.success('复制成功。')
|
|
|
}
|
|
|
|
|
|
const pasteClick = () => {
|
|
|
- if (currentPage.value === frequCodeEnum.temporary && yiZhuData.value.frequCode !== 'ONCE') {
|
|
|
+ if (currentPage.value === frequCodeEnum.temporary && copyOrderNo.frequCode !== 'ONCE') {
|
|
|
copyOrderNo.frequCode = 'ONCE'
|
|
|
- } else if (currentPage.value === frequCodeEnum.longTerm && yiZhuData.value.frequCode === 'ONCE') {
|
|
|
+ } else if (currentPage.value === frequCodeEnum.longTerm && copyOrderNo.frequCode === 'ONCE') {
|
|
|
copyOrderNo.frequCode = 'ALWAYS'
|
|
|
} else if (currentPage.value === frequCodeEnum.takeMedicine) {
|
|
|
copyOrderNo.frequCode = 'ONCE'
|
|
|
@@ -901,6 +907,14 @@ let shortcutKeyRegistration = {
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
+
|
|
|
+ yzMitt.on('copy', copy)
|
|
|
+ yzMitt.on('paste', pasteClick)
|
|
|
+ yzMitt.on('allowReplication', () => {
|
|
|
+ return copyOrderNo.actOrderNo !== null
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
yzMitt.on('deleteAnOrderByOrderNo', ({actOrderNo, orderName}, clearOrNot = true) => {
|
|
|
if (stringIsBlank(actOrderNo)) {
|
|
|
BizException(ExceptionEnum.MESSAGE_ERROR, '请先选择要删除的医嘱')
|