|
|
@@ -12,7 +12,8 @@
|
|
|
<el-divider direction="vertical"/>
|
|
|
<button @click="copyClick" title="复制当前工作台的医嘱,并粘贴到工作台中">复制</button>
|
|
|
<button @click="pasteClick" :disabled="copyOrderNo.actOrderNo === null"
|
|
|
- title="复制当前工作台的医嘱,并粘贴到工作台中">粘贴
|
|
|
+ title="复制当前工作台的医嘱,并粘贴到工作台中">
|
|
|
+ 粘贴
|
|
|
</button>
|
|
|
<el-divider direction="vertical"/>
|
|
|
<button @click="duplicateAndPaste" title="复制当前工作台的医嘱,并粘贴到工作台中">复制并粘贴</button>
|
|
|
@@ -21,6 +22,7 @@
|
|
|
</button>
|
|
|
<outpatient-appointments/>
|
|
|
<one-click-stop/>
|
|
|
+ <doctor-authorization/>
|
|
|
</div>
|
|
|
<div class="editing_area"
|
|
|
:style="{color: isEdit ? '#0014fc' : ''}">
|
|
|
@@ -303,6 +305,8 @@ import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
import OutpatientAppointments
|
|
|
from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/OutpatientAppointments.vue";
|
|
|
import OneClickStop from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/OneClickStop.vue";
|
|
|
+import DoctorAuthorization
|
|
|
+ from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/DoctorAuthorization.vue";
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
@@ -359,10 +363,17 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
|
|
|
let newData = yiZhuData.value.statusFlag === '1'
|
|
|
if (row.serial === '01' || row.serial === '99') {
|
|
|
try {
|
|
|
- let queryKey = row.orderCode + '_' + row.serial + '_' + props.patientInfo.zkWard + '_' + queryParam.value.groupNo
|
|
|
+ let queryKey = row.orderCode + '_' + row.serial + '_' + props.patientInfo.zkWard + '_' + queryParam.value.groupNo + "_" + yiZhuData.value.superiorDoctor
|
|
|
let res = await huoQuFeiYongXinXi(queryKey)
|
|
|
+
|
|
|
+ if (res.permissionPrompt) {
|
|
|
+ let authorization = await yzMitt.emit('openDoctorAuthoriztion', row.orderCode + '_' + row.serial)
|
|
|
+ yiZhuData.value.superiorDoctor = authorization.code
|
|
|
+ yiZhuData.value.instruction = `由【${authorization.name}】医生授权。`
|
|
|
+ }
|
|
|
+
|
|
|
// 加载药品计量
|
|
|
- yaoPinJiLiangData.value = res.yaoPingJiLiang
|
|
|
+ yaoPinJiLiangData.value = res.yaoPingJiLiang;
|
|
|
if (newData) {
|
|
|
// 判断是否 是皮试的药 如果是就只能有这些 给药方式
|
|
|
// geiYaoFangShiData.value = res.piShi
|
|
|
@@ -370,7 +381,6 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
|
|
|
yiZhuData.value.kjywFlag = res.data.kjywFlag
|
|
|
// 提示信息
|
|
|
tiShiBiaoTi.value = res.prompt
|
|
|
-
|
|
|
// 最小单位名称
|
|
|
if (laiyuan === 1) {
|
|
|
yiZhuData.value.miniUnit = res.data.packUnit;
|
|
|
@@ -416,14 +426,14 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
|
|
|
openTheOrderPopUpWindow()
|
|
|
} catch (e) {
|
|
|
if (yiZhuData.value.statusFlag === '1') {
|
|
|
- await Sleep(200)
|
|
|
- qingKong()
|
|
|
+ await Sleep(200);
|
|
|
+ qingKong();
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
yiZhuData.value.kjywFlag = 0
|
|
|
try {
|
|
|
- let queryKey = row.orderCode + '_' + '00' + '_' + props.patientInfo.zkWard + '_' + queryParam.value.groupNo
|
|
|
+ let queryKey = row.orderCode + '_' + '00' + '_' + props.patientInfo.zkWard + '_' + queryParam.value.groupNo + "_" + yiZhuData.value.superiorDoctor
|
|
|
let res = await huoQuFeiYongXinXi(queryKey)
|
|
|
if (newData) {
|
|
|
openTheOrderPopUpWindow('请输入处置医嘱名')
|
|
|
@@ -730,7 +740,7 @@ const toAddAnOrder = async () => {
|
|
|
admissTimes: props.patientInfo.admissTimes,
|
|
|
actOrderNo: yiZhuData.value.actOrderNo,
|
|
|
groupNo: queryParam.value.groupNo,
|
|
|
- data: yiZhuData.value
|
|
|
+ data: yiZhuData.value,
|
|
|
}
|
|
|
try {
|
|
|
let res = await enterOrders(param)
|