|
@@ -7,16 +7,15 @@
|
|
|
:click-on-the-order-template="clickOnTheOrderTemplate"
|
|
|
:confirm-orders-click="confirmOrdersClick"/>
|
|
|
<div>
|
|
|
- <el-button @click="orderTemplateClick">维护模板</el-button>
|
|
|
- <el-button type="warning" @click="clickToStopTheOrder">批量停止</el-button>
|
|
|
+ <button @click="orderTemplateClick">维护模板</button>
|
|
|
+ <button type="warning" @click="clickToStopTheOrder">批量停止</button>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)"
|
|
|
+ <button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)"
|
|
|
@click="clickToModifyTheDoctorSOrderTime"> 修改医嘱时间
|
|
|
- </el-button>
|
|
|
- <el-button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)" @click="jumpToMedicalRecord"> 病案首页
|
|
|
- </el-button>
|
|
|
- <el-button type="primary" @click="openElectronicMedicalRecord"> 电子病历</el-button>
|
|
|
- <el-button type="danger" @click="clickDrugReturn"> 退药</el-button>
|
|
|
+ </button>
|
|
|
+ <button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)" @click="jumpToMedicalRecord"> 病案首页
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="openElectronicMedicalRecord"> 电子病历</button>
|
|
|
</div>
|
|
|
<div>
|
|
|
<yz-editor :patient-info="huanZheXinXi"
|
|
@@ -27,6 +26,7 @@
|
|
|
|
|
|
<div style="overflow-x: auto" :style="{width: winsize.main - 20 + 'px'}">
|
|
|
<yz-table :data="tempYzData"
|
|
|
+ ref="tableRef"
|
|
|
@rowClick="rowClick"
|
|
|
:void-orders="voidOrdersClick"/>
|
|
|
</div>
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
youWuXuanZheHuanZhe,
|
|
|
getYzIndex,
|
|
|
winsize,
|
|
|
- zkList, selectedData
|
|
|
+ zkList, selectedData, queryParam
|
|
|
} from '../public-js/zhu-yuan-yi-sheng'
|
|
|
import store from '@/store'
|
|
|
import {stringIsBlank} from '@/utils/blank-utils'
|
|
@@ -94,8 +94,12 @@ const yzQueryRef = ref(null)
|
|
|
|
|
|
// 医嘱编辑
|
|
|
const yzEditorRef = ref(null)
|
|
|
-const successfullyEntered = () => {
|
|
|
- yzQueryRef.value.queryYz()
|
|
|
+const successfullyEntered = async () => {
|
|
|
+ await yzQueryRef.value.queryYz()
|
|
|
+ queryParam.value.displayRange = 0
|
|
|
+ queryParam.value.frequCode = 0
|
|
|
+ queryParam.value.zhuangTai = 0
|
|
|
+ tableRef.value.scrollToTheEnd()
|
|
|
addYiZhuClick()
|
|
|
}
|
|
|
/**
|
|
@@ -110,7 +114,7 @@ const addYiZhuClick = () => {
|
|
|
*/
|
|
|
const confirmOrdersClick = async () => {
|
|
|
await yzEditorRef.value.confirmOrdersClick()
|
|
|
- yzQueryRef.value.queryYz()
|
|
|
+ await yzQueryRef.value.queryYz()
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -121,7 +125,7 @@ const toDeleteAnOrder = () => {
|
|
|
}
|
|
|
|
|
|
// 表格
|
|
|
-let tableRef = $ref(null)
|
|
|
+let tableRef = ref(null)
|
|
|
const rowClick = (val) => {
|
|
|
yzEditorRef.value.fillData(val)
|
|
|
}
|
|
@@ -317,35 +321,6 @@ const jumpToMedicalRecord = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 点击医嘱退药
|
|
|
- */
|
|
|
-const clickDrugReturn = () => {
|
|
|
- if (xuanZhongDeShuJu.value.length === 0) {
|
|
|
- return ElMessage.error('请先选中数据')
|
|
|
- }
|
|
|
- ElMessageBox.confirm('请确认是否要退这些药品,项目无法退费。', '提示', {
|
|
|
- type: 'warning',
|
|
|
- confirmButtonText: '已确认',
|
|
|
- cancelButtonText: '让我在想想'
|
|
|
- }).then(() => {
|
|
|
- let temp = []
|
|
|
- xuanZhongDeShuJu.value.forEach(item => {
|
|
|
- if (item.serial !== '00' && item.drugFlag !== 'd' && item.orderCode !== '06054') {
|
|
|
- temp.push(item.id)
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- drugWithdrawal(temp).then(() => {
|
|
|
- tableRef.clearSelection(false)
|
|
|
- })
|
|
|
-
|
|
|
- }).catch(() => {
|
|
|
-
|
|
|
- })
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
</script>
|
|
|
|