|
@@ -66,12 +66,11 @@
|
|
|
<AllergenEntry v-if="allergen.dialog"
|
|
|
:pat-no="huanZheXinXi.inpatientNo"
|
|
|
@close="allergen.dialog = false"/>
|
|
|
-
|
|
|
<order-progress ref="orderProgressRef"/>
|
|
|
-
|
|
|
<!-- 合理用药窗口 -->
|
|
|
<rational-drug-use-window ref="reasonableRef" @submit="confirmOrder"/>
|
|
|
<fee-table/>
|
|
|
+ <order-quash-dialog v-if="orderQuash.dialog" :data="orderQuash.data"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -114,6 +113,8 @@ import YzTableV2 from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/YzTable
|
|
|
import {clone} from "@/utils/clone";
|
|
|
import BloodSugar from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/BloodSugar.vue";
|
|
|
import FeeTable from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/FeeTable.vue";
|
|
|
+import OrderQuashDialog from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/OrderQuashDialog.vue";
|
|
|
+import XEUtils from 'xe-utils'
|
|
|
|
|
|
const windowSize = computed(() => {
|
|
|
return store.state.app.windowSize
|
|
@@ -496,7 +497,25 @@ const batchDeleteOrdersClick = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const orderQuash = ref({
|
|
|
+ dialog: false,
|
|
|
+ data: []
|
|
|
+})
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
+ yzMitt.on('openOrderQuash', () => {
|
|
|
+ let data = yzMitt.emit('getSelectedData')
|
|
|
+ if (XEUtils.isEmpty(data)) {
|
|
|
+ orderQuash.value = {
|
|
|
+ dialog: true,
|
|
|
+ data
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ xcMessage.error('请选择要撤销的医嘱')
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
getSupplyType().then(res => {
|
|
|
geiYaoFangShiData.value = res
|
|
|
})
|