|
@@ -1,20 +1,21 @@
|
|
|
<template>
|
|
|
<div style="display: flex;margin: 0 10px">
|
|
|
- <div style="width: 400px">
|
|
|
+ <div style="width: max-content">
|
|
|
<el-radio-group v-model="chaZhaoLeiXing" @change="dianJiLeiXingChaXun">
|
|
|
<el-radio-button :label="1">新申请</el-radio-button>
|
|
|
<el-radio-button :label="2">个人模板</el-radio-button>
|
|
|
<el-radio-button :label="3">科室模板</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
- <div style="overflow: auto ;width: 220px"
|
|
|
+ <div style="overflow: auto "
|
|
|
:style="{height: ( yzSize.h / 1.2) + 'px'}">
|
|
|
<div v-show="chaZhaoLeiXing === 1">
|
|
|
<JyJcTree yjyc="jy" @nodeClick="nodeClick"/>
|
|
|
</div>
|
|
|
<div v-show="chaZhaoLeiXing !== 1">
|
|
|
- <jy-jc-template-tree :data="templateData"
|
|
|
- @node-click="tempClick"
|
|
|
- @del-click="clickDeleteTemplate"/>
|
|
|
+ <jc-jy-template :data="templateData"
|
|
|
+ :is-check="false"
|
|
|
+ @del-click="deleteTemplate"
|
|
|
+ @node-click="rowClick"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -73,7 +74,7 @@ import {computed, onMounted, ref} from 'vue'
|
|
|
import {
|
|
|
baoCunJianChaJianYanMuBan,
|
|
|
baoCunJianYanJianCha,
|
|
|
- getTemplate,
|
|
|
+ getTemplateGrouping,
|
|
|
jianChaJianYanMuBanMing,
|
|
|
shanShuJianChaMuBan,
|
|
|
} from '@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing'
|
|
@@ -90,11 +91,10 @@ import Sleep from '@/utils/sleep'
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
import JyJcTree from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/jy-jc-tree/JyJcTree.vue";
|
|
|
import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
-import JyJcTemplateTree
|
|
|
- from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JyJcTemplateTree.vue";
|
|
|
-import {getWindowSize} from '@/utils/window-size'
|
|
|
import JianChaJianYanTable
|
|
|
from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/components/public/JianChaJianYanTable.vue";
|
|
|
+import JcJyTemplate
|
|
|
+ from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/components/public/JcJyTemplate.vue";
|
|
|
|
|
|
|
|
|
const chaZhaoLeiXing = ref(1)
|
|
@@ -119,13 +119,15 @@ const baoCunMuBan = ref({
|
|
|
|
|
|
const templateData = ref()
|
|
|
const dianJiLeiXingChaXun = () => {
|
|
|
- getTemplate('2', chaZhaoLeiXing.value).then((res) => {
|
|
|
- templateData.value = res
|
|
|
- })
|
|
|
+ if (chaZhaoLeiXing.value !== 1) {
|
|
|
+ getTemplateGrouping('2', chaZhaoLeiXing.value).then((res) => {
|
|
|
+ templateData.value = res
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
-const tempClick = async (data) => {
|
|
|
+const rowClick = async (data) => {
|
|
|
if (data.isTheParentNode === '2') {
|
|
|
if (xuanZhongJianYan.value.weiBianMa.indexOf(data.orderCode) > -1) {
|
|
|
BizException(ExceptionEnum.MESSAGE_ERROR, '请勿重复添加。')
|
|
@@ -189,7 +191,7 @@ function baoCunShuJu() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const clickDeleteTemplate = (data) => {
|
|
|
+const deleteTemplate = (data) => {
|
|
|
ElMessageBox.confirm('是否要删除该模板', '提示', {
|
|
|
type: 'warning',
|
|
|
}).then(() => {
|