xiaochan 2 سال پیش
والد
کامیت
2d924f9918

+ 1 - 1
src/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/TianJiaJianYan.vue

@@ -6,7 +6,7 @@
         <el-radio-button :label="2">个人模板</el-radio-button>
         <el-radio-button :label="3">科室模板</el-radio-button>
       </el-radio-group>
-      <div style="overflow: auto"
+      <div style="overflow: auto ;width: 220px"
            :style="{height: ( yzSize.h / 1.2) + 'px'}">
         <div v-show="chaZhaoLeiXing === 1">
           <JyJcTree yjyc="jy" @nodeClick="nodeClick"/>

+ 47 - 47
src/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/aside/NewApplication.vue

@@ -1,41 +1,41 @@
 <template>
-    <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"
-         :style="{height: getWindowSize.h - (yzHeaderSize)  - 60 + 'px'}">
-        <div v-show="chaZhaoLeiXing === 1">
-            <JyJcTree yjyc="jc" @node-click="nodeClick"/>
-        </div>
-        <div v-show="chaZhaoLeiXing !== 1">
-            <jy-jc-template-tree :data="templateData"
-                                 @node-click="rowClick"
-                                 @del-click="deleteTemplate"/>
-        </div>
+  <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"
+       :style="{height: getWindowSize.h - (yzHeaderSize)  - 60 + 'px'}">
+    <div v-show="chaZhaoLeiXing === 1" style="width: max-content">
+      <JyJcTree yjyc="jc" @node-click="nodeClick"/>
     </div>
+    <div v-show="chaZhaoLeiXing !== 1" style="width: max-content">
+      <jy-jc-template-tree :data="templateData"
+                           @node-click="rowClick"
+                           @del-click="deleteTemplate"/>
+    </div>
+  </div>
 </template>
 
 
 <script setup name='NewApplication'>
 import {ref} from "vue";
 import {
-    getCheckNewApplication,
-    getTemplate, shanShuJianChaMuBan
+  getCheckNewApplication,
+  getTemplate, shanShuJianChaMuBan
 } from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
 import JyJcTree from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/jy-jc-tree/JyJcTree.vue";
 import {ElMessageBox} from "element-plus";
 import store from "@/store";
 import {
-    addJcCheck, yzHeaderSize,
+  addJcCheck, yzHeaderSize,
 } from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
 import JyJcTemplateTree
-    from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JyJcTemplateTree.vue";
+  from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JyJcTemplateTree.vue";
 import {getWindowSize} from "@/utils/window-size";
 
 const props = defineProps({
-    returnItem: Function
+  returnItem: Function
 })
 
 const config = {value: 'code', label: 'name', children: 'children'}
@@ -48,46 +48,46 @@ const templateData = ref([])
 
 
 const rowClick = (data) => {
-    if (data.isTheParentNode === '2') {
-        addJcCheck(data)
-    }
+  if (data.isTheParentNode === '2') {
+    addJcCheck(data)
+  }
 }
 
 const dianJiLeiXingChaXun = () => {
-    if (chaZhaoLeiXing.value !== 1) {
-        getTemplate('3', chaZhaoLeiXing.value).then((res) => {
-            templateData.value = res
-        })
-    }
+  if (chaZhaoLeiXing.value !== 1) {
+    getTemplate('3', chaZhaoLeiXing.value).then((res) => {
+      templateData.value = res
+    })
+  }
 }
 
 const nodeClick = (data) => {
-    let temp = {
-        execDept: data.execUnit,
-        execDeptName: data.execUnitName,
-        orderCode: data.code,
-        orderName: data.name,
-        orderType: data.classes,
-        isTheParentNode: '2'
-    }
-    rowClick(temp)
+  let temp = {
+    execDept: data.execUnit,
+    execDeptName: data.execUnitName,
+    orderCode: data.code,
+    orderName: data.name,
+    orderType: data.classes,
+    isTheParentNode: '2'
+  }
+  rowClick(temp)
 }
 
 const deleteTemplate = (val) => {
-    ElMessageBox.confirm('是否要删除该模板', '提示', {
-        type: 'warning',
-    }).then(() => {
-        shanShuJianChaMuBan(val.code, store.state.user.info.deptCode).then(() => {
-            dianJiLeiXingChaXun()
-        })
-    }).catch(() => {
+  ElMessageBox.confirm('是否要删除该模板', '提示', {
+    type: 'warning',
+  }).then(() => {
+    shanShuJianChaMuBan(val.code, store.state.user.info.deptCode).then(() => {
+      dianJiLeiXingChaXun()
     })
+  }).catch(() => {
+  })
 }
 
 onMounted(() => {
-    getCheckNewApplication().then((res) => {
-        newApplication.value = res
-    })
+  getCheckNewApplication().then((res) => {
+    newApplication.value = res
+  })
 })
 
 </script>