xiaochan hace 1 año
padre
commit
230f32fbab

+ 0 - 2
src/assets/cy/cy-dialog.css → src/assets/cy/cy-dialog.scss

@@ -52,10 +52,8 @@
             transform: scale(0)
         }
     }
-
 }
 
-
 @keyframes reboundClick {
     0% {
         transform: scale(1)

+ 1 - 1
src/components/cy/dialog/src/CyDialog.vue

@@ -6,7 +6,7 @@ import {
   useZIndex, useDraggable,
 } from "element-plus";
 import sleep from "@/utils/sleep";
-import '@/assets/cy/cy-dialog.css'
+import '@/assets/cy/cy-dialog.scss'
 import {Headset} from "@element-plus/icons-vue";
 
 const props = defineProps({

+ 7 - 6
src/components/cy/message-box/src/index.vue

@@ -12,10 +12,9 @@ import {
 } from "element-plus";
 import {nextTick, onMounted, ref, computed, watch} from "vue";
 import sleep from "@/utils/sleep";
-import {Close} from '@element-plus/icons-vue'
+import {Close} from '@element-plus/icons-vue';
 import {useCompRef} from "@/utils/useCompRef";
-import {uuid} from '@/utils/getUuid'
-import '@/assets/cy/cy-dialog.css'
+import {uuid} from '@/utils/getUuid';
 
 const props = defineProps({
   title: {
@@ -132,9 +131,9 @@ const reboundClick = async () => {
 
 const overlayClick = () => {
   if (props.closeOnClickModal) {
-    handelClose('close')
+    handelClose('close');
   } else {
-    reboundClick()
+    reboundClick();
   }
 }
 
@@ -174,7 +173,7 @@ const submitVerification = (val): boolean => {
 const handelClose = (val: 'cancel' | 'confirm' | 'close') => {
   if (!submitVerification(val)) return
   if (val === "cancel" && !props.beforeClose(inputValue.value)) {
-    reboundClick()
+    reboundClick();
     return;
   }
   visible.value = false
@@ -329,6 +328,8 @@ onMounted(async () => {
 </template>
 
 <style lang="scss">
+@import "@/assets/cy/cy-dialog";
+
 $cy-message-box-radius: 13px;
 
 .cy-overlay-message-box {

+ 1 - 6
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -186,12 +186,7 @@ const orderQuash = async (val) => {
       {code: '病情变化', name: '病情变化'},
       {code: '患者欠费未生成药单', name: '患者欠费未生成药单'},
     ],
-    inputValidator: (val: string) => {
-      if (val.length > 50) {
-        return '字数不得超过50个字。'
-      }
-      return true
-    }
+    inputMaxLength: 50,
   }).then(async ({value}) => {
     let res = await applicationForRevocation({
       actOrderNo: val.actOrderNo,