|
|
@@ -78,6 +78,7 @@ import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
import DoctorSOrderFee from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/DoctorSOrderFee.vue";
|
|
|
import YzTableV3 from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/table/YzTableV3.vue";
|
|
|
import CyFlex from "@/components/cy/flex/src/CyFlex.vue";
|
|
|
+import doctorStore, {YzSidebarEnum} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/useDoctorStore";
|
|
|
|
|
|
let allergen = ref({
|
|
|
dialog: false,
|
|
|
@@ -98,10 +99,6 @@ const reasonableRef = ref(null)
|
|
|
* 确认医嘱 , 已经做过无患者的判断了
|
|
|
*/
|
|
|
const confirmOrdersClick = async () => {
|
|
|
- // if (isDev) {
|
|
|
- // await confirmOrder()
|
|
|
- // return
|
|
|
- // }
|
|
|
// 如果没有问题就可以直接确认医嘱了。
|
|
|
let temp = await reasonableRef.value.check(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes);
|
|
|
if (temp) {
|
|
|
@@ -218,16 +215,6 @@ const chargeDetails = ref({
|
|
|
sum: {}
|
|
|
})
|
|
|
|
|
|
-const clickToViewTheDoctorSOrderFee = (val) => {
|
|
|
- chargeDetails.value.data = doctorSOrderFee.value.data[val.actOrderNoStr]
|
|
|
- if (chargeDetails.value.data) {
|
|
|
- chargeDetails.value.sum = doctorSOrderFee.value.totalCost[val.actOrderNoStr]
|
|
|
- chargeDetails.value.dialog = true
|
|
|
- } else {
|
|
|
- BizException(ExceptionEnum.MESSAGE_ERROR, '该医嘱还没有产生费用')
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
// 获取模板
|
|
|
const mubanRef = ref(null)
|
|
|
const clickOnTheOrderTemplate = () => {
|
|
|
@@ -300,7 +287,7 @@ const batchDeleteOrdersClick = () => {
|
|
|
|
|
|
let tempData = yzMitt.emit('getSelectedData')
|
|
|
|
|
|
- if (tempData.length === 0) {
|
|
|
+ if (tempData!.length === 0) {
|
|
|
BizException(ExceptionEnum.LOGICAL_ERROR, "请先选择要删除的数据");
|
|
|
}
|
|
|
|
|
|
@@ -330,25 +317,21 @@ const batchDeleteOrdersClick = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const editSizeRef = ref(null)
|
|
|
-
|
|
|
onMounted(async () => {
|
|
|
-
|
|
|
yzMitt.on("allergen", allergen.value.open)
|
|
|
yzMitt.on('clickOnTheOrderTemplate', clickOnTheOrderTemplate)
|
|
|
yzMitt.on('rowClick', rowClick)
|
|
|
-
|
|
|
await sleep(200)
|
|
|
zkList.value = await getTheTransferList()
|
|
|
})
|
|
|
|
|
|
-
|
|
|
onActivated(async () => {
|
|
|
if (router.currentRoute.value.params.inpatientNo) {
|
|
|
await nextTick()
|
|
|
await clickOnThePatient(<string>router.currentRoute.value.params.inpatientNo);
|
|
|
await yzMitt.emit('queryYz')
|
|
|
}
|
|
|
+ doctorStore.setYzSidebar(YzSidebarEnum.PATIENT_LIST)
|
|
|
})
|
|
|
|
|
|
|