|
@@ -6,9 +6,30 @@
|
|
|
<el-radio-button :label="2">个人模板</el-radio-button>
|
|
|
<el-radio-button :label="3">科室模板</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
- <el-table :data="jianChaFenLeiShuJu.data" :height="windowSize.h / 1.4" highlight-current-row stripe
|
|
|
- @row-click="clickToViewData">
|
|
|
- <el-table-column label="名称" prop="name"></el-table-column>
|
|
|
+ <el-table :data="jianChaFenLeiShuJu.data"
|
|
|
+ :height="windowSize.h / 1.4"
|
|
|
+ highlight-current-row stripe>
|
|
|
+ <el-table-column label="名称" prop="name">
|
|
|
+ <template #default="{row}">
|
|
|
+ <el-popover trigger="click" :width="0" placement="right">
|
|
|
+ <template #reference>
|
|
|
+ <el-button @click="clickToViewData(row)">{{ row.name }}</el-button>
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <el-button @click="dianJiQueRenXuanZhong">确定</el-button>
|
|
|
+ <el-button @click="okAndEdit">确定并编辑</el-button>
|
|
|
+ <xc-table :local-data="detailsOfNewInspectionItems"
|
|
|
+ :height="400"
|
|
|
+ @selection-change="xuanZhong"
|
|
|
+ :open-paging="false">
|
|
|
+ <el-table-column type="selection"></el-table-column>
|
|
|
+ <el-table-column label="项目名称" prop="orderName" width="220"></el-table-column>
|
|
|
+ <el-table-column label="说明" prop="ybComment"></el-table-column>
|
|
|
+ </xc-table>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
|
<el-button v-if="chaZhaoLeiXing !== 1" type="danger"
|
|
@@ -61,17 +82,7 @@
|
|
|
</el-table>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
- <el-dialog v-model="xiangXiShuJu.dialog" title="查询">
|
|
|
- <el-button @click="okAndEdit">确定并编辑</el-button>
|
|
|
- <el-button @click="dianJiQueRenXuanZhong">确定</el-button>
|
|
|
- <el-button @click="xiangXiShuJu.dialog = false">取消</el-button>
|
|
|
- <xc-table :local-data="xiangXiShuJu.data" :height="windowSize.h / 2" @selection-change="xuanZhong"
|
|
|
- :open-paging="false">
|
|
|
- <el-table-column type="selection"></el-table-column>
|
|
|
- <el-table-column label="项目名称" prop="orderName"></el-table-column>
|
|
|
- <el-table-column label="说明" prop="ybComment"></el-table-column>
|
|
|
- </xc-table>
|
|
|
- </el-dialog>
|
|
|
+
|
|
|
<el-dialog v-model="baoCunMuBan.dialog" center title="保存检查模板" width="30%">
|
|
|
<el-form ref="baoCunMuBanRef" :model="baoCunMuBan" :rules="baoCunMuBanJiaoYan" label-width="80px">
|
|
|
<el-row>
|
|
@@ -137,11 +148,9 @@ import {
|
|
|
} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
|
|
|
import {yaoPinXiangMuPiPeiYiBao} from '@/api/public-api'
|
|
|
import CuoWuXinXi from '@/components/zhu-yuan-yi-sheng/CuoWuXinXi.vue'
|
|
|
-import {logoutShortcut, xcHotKey} from '@/utils/xckeydown'
|
|
|
import Sleep from '@/utils/sleep'
|
|
|
import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
-import XcCode from "@/components/xiao-chan/code/XcCode.vue";
|
|
|
|
|
|
const props = defineProps({
|
|
|
jianCha: {
|
|
@@ -154,10 +163,9 @@ const chaZhaoLeiXing = ref(1)
|
|
|
const windowSize = computed(() => {
|
|
|
return store.state.app.windowSize
|
|
|
})
|
|
|
-const xiangXiShuJu = ref({
|
|
|
- dialog: false,
|
|
|
- data: [],
|
|
|
-})
|
|
|
+
|
|
|
+const detailsOfNewInspectionItems = ref([])
|
|
|
+
|
|
|
const jianChaFenLeiShuJu = ref({
|
|
|
currentPage: 1,
|
|
|
total: 0,
|
|
@@ -217,7 +225,6 @@ const dianJiQueRenXuanZhong = () => {
|
|
|
if (tiShi) {
|
|
|
ElMessage.error('请勿重复添加。')
|
|
|
}
|
|
|
- xiangXiShuJu.value.dialog = false
|
|
|
}
|
|
|
|
|
|
const dianJiBianJi = (row, index) => {
|
|
@@ -279,8 +286,7 @@ const clickToViewData = ({code, bwCode}) => {
|
|
|
}
|
|
|
chaKanFenLeiXiangQing(code, chaZhaoLeiXing.value === 1 ? bwCode : 'mb', props.jianCha).then((res) => {
|
|
|
if (listNotBlank(res)) {
|
|
|
- xiangXiShuJu.value.data = res
|
|
|
- xiangXiShuJu.value.dialog = true
|
|
|
+ detailsOfNewInspectionItems.value = res
|
|
|
} else {
|
|
|
ElMessage.error('没有找到对应的数据')
|
|
|
}
|
|
@@ -361,14 +367,6 @@ const clickSaveTemplate = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const shortcutToOpenEditing = () => {
|
|
|
- if (xuanZhongJianCha.value.data.length > 0) {
|
|
|
- dianJiBianJi(xuanZhongJianCha.value.data[0], 0)
|
|
|
- } else {
|
|
|
- ElMessage.error('您还没有选择数据')
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
const starAdd = (obj) => {
|
|
|
let index = [0, 1, 2, 3, 6, 7, 8, 9]
|
|
|
if (index.indexOf(obj.columnIndex) > -1) {
|
|
@@ -385,9 +383,6 @@ onMounted(() => {
|
|
|
dianJiLeiXingChaXun()
|
|
|
})
|
|
|
|
|
|
-onUnmounted(() => {
|
|
|
- logoutShortcut()
|
|
|
-})
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|